#[repr(transparent)]pub struct ValidationMode(pub i8);Tuple Fields§
§0: i8Implementations§
Source§impl ValidationMode
impl ValidationMode
Sourcepub const OnBlurThenChange: Self
pub const OnBlurThenChange: Self
Validate on blur, then on change after first error (best UX).
pub const ENUM_MIN: i8 = 0
pub const ENUM_MAX: i8 = 3
pub const ENUM_VALUES: &'static [Self]
Sourcepub fn variant_name(self) -> Option<&'static str>
pub fn variant_name(self) -> Option<&'static str>
Returns the variant’s name or “” if unknown.
Trait Implementations§
Source§impl Clone for ValidationMode
impl Clone for ValidationMode
Source§fn clone(&self) -> ValidationMode
fn clone(&self) -> ValidationMode
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidationMode
impl Debug for ValidationMode
Source§impl Default for ValidationMode
impl Default for ValidationMode
Source§fn default() -> ValidationMode
fn default() -> ValidationMode
Returns the “default value” for a type. Read more
Source§impl EndianScalar for ValidationMode
impl EndianScalar for ValidationMode
Source§impl<'a> Follow<'a> for ValidationMode
impl<'a> Follow<'a> for ValidationMode
Source§impl Hash for ValidationMode
impl Hash for ValidationMode
Source§impl Ord for ValidationMode
impl Ord for ValidationMode
Source§fn cmp(&self, other: &ValidationMode) -> Ordering
fn cmp(&self, other: &ValidationMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ValidationMode
impl PartialEq for ValidationMode
Source§impl PartialOrd for ValidationMode
impl PartialOrd for ValidationMode
Source§impl Push for ValidationMode
impl Push for ValidationMode
Source§impl<'a> Verifiable for ValidationMode
impl<'a> Verifiable for ValidationMode
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl Copy for ValidationMode
impl Eq for ValidationMode
impl SimpleToVerifyInSlice for ValidationMode
impl StructuralPartialEq for ValidationMode
Auto Trait Implementations§
impl Freeze for ValidationMode
impl RefUnwindSafe for ValidationMode
impl Send for ValidationMode
impl Sync for ValidationMode
impl Unpin for ValidationMode
impl UnsafeUnpin for ValidationMode
impl UnwindSafe for ValidationMode
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