pub struct AbbreviationRoleValidator;Expand description
Validator for abbreviation role
Implementations§
Trait Implementations§
Source§impl Default for AbbreviationRoleValidator
impl Default for AbbreviationRoleValidator
Source§fn default() -> AbbreviationRoleValidator
fn default() -> AbbreviationRoleValidator
Returns the “default value” for a type. Read more
Source§impl RoleValidator for AbbreviationRoleValidator
impl RoleValidator for AbbreviationRoleValidator
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 AbbreviationRoleValidator
impl RefUnwindSafe for AbbreviationRoleValidator
impl Send for AbbreviationRoleValidator
impl Sync for AbbreviationRoleValidator
impl Unpin for AbbreviationRoleValidator
impl UnwindSafe for AbbreviationRoleValidator
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