pub enum LimitCheckResult {
Ok,
Warning {
current: usize,
max: usize,
},
Exceeded {
current: usize,
max: usize,
},
TooShort {
current: usize,
min: usize,
},
}Expand description
Result of a character limit check
Variants§
Ok
Within limits
Warning
Approaching limit (warning)
Exceeded
At or exceeding limit (error)
TooShort
Below minimum length
Trait Implementations§
Source§impl Clone for LimitCheckResult
impl Clone for LimitCheckResult
Source§fn clone(&self) -> LimitCheckResult
fn clone(&self) -> LimitCheckResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LimitCheckResult
impl Debug for LimitCheckResult
impl Eq for LimitCheckResult
Source§impl PartialEq for LimitCheckResult
impl PartialEq for LimitCheckResult
Source§fn eq(&self, other: &LimitCheckResult) -> bool
fn eq(&self, other: &LimitCheckResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LimitCheckResult
Auto Trait Implementations§
impl Freeze for LimitCheckResult
impl RefUnwindSafe for LimitCheckResult
impl Send for LimitCheckResult
impl Sync for LimitCheckResult
impl Unpin for LimitCheckResult
impl UnsafeUnpin for LimitCheckResult
impl UnwindSafe for LimitCheckResult
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