pub struct KbdRoleValidator;Expand description
Validator for kbd role
Implementations§
Trait Implementations§
Source§impl Default for KbdRoleValidator
impl Default for KbdRoleValidator
Source§fn default() -> KbdRoleValidator
fn default() -> KbdRoleValidator
Returns the “default value” for a type. Read more
Source§impl RoleValidator for KbdRoleValidator
impl RoleValidator for KbdRoleValidator
Source§fn validate(&self, role: &ParsedRole) -> RoleValidationResult
fn validate(&self, role: &ParsedRole) -> RoleValidationResult
Validates a parsed role
Source§fn requires_target(&self) -> bool
fn requires_target(&self) -> bool
Returns whether this role requires a target
Source§fn allows_display_text(&self) -> bool
fn allows_display_text(&self) -> bool
Returns whether this role allows display text
Source§fn get_suggestions(&self, role: &ParsedRole) -> Vec<String>
fn get_suggestions(&self, role: &ParsedRole) -> Vec<String>
Provides suggestions for fixing role issues
Auto Trait Implementations§
impl Freeze for KbdRoleValidator
impl RefUnwindSafe for KbdRoleValidator
impl Send for KbdRoleValidator
impl Sync for KbdRoleValidator
impl Unpin for KbdRoleValidator
impl UnwindSafe for KbdRoleValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more