pub enum Mark {
Disabled,
Invalid,
Pending,
Modified,
Required,
ReadOnly,
}Expand description
One state a field shows, for its marker and icon. The order of the variants is the order of precedence: the first state a field has gives its edge.
Variants§
Disabled
Cannot be focused nor changed, for a reason.
Invalid
The value is refused, with a message.
Pending
The value is being checked (an asynchronous validation).
Modified
Differs from the saved or default value.
Required
Must be given.
ReadOnly
Can be focused, selected and copied, not changed.
Implementations§
Trait Implementations§
Source§impl Ord for Mark
impl Ord for Mark
Source§impl PartialOrd for Mark
impl PartialOrd for Mark
impl Copy for Mark
impl Eq for Mark
impl StructuralPartialEq for Mark
Auto Trait Implementations§
impl Freeze for Mark
impl RefUnwindSafe for Mark
impl Send for Mark
impl Sync for Mark
impl Unpin for Mark
impl UnsafeUnpin for Mark
impl UnwindSafe for Mark
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