#[repr(transparent)]pub struct LengthUnit(pub i8);Tuple Fields§
§0: i8Implementations§
Source§impl LengthUnit
impl LengthUnit
pub const Px: Self
pub const Rem: Self
pub const Em: Self
pub const Percent: Self
pub const Vw: Self
pub const Vh: Self
pub const Dvh: Self
pub const Svh: Self
pub const Auto: Self
pub const FitContent: Self
pub const MinContent: Self
pub const MaxContent: Self
pub const Fr: Self
pub const ENUM_MIN: i8 = 0
pub const ENUM_MAX: i8 = 12
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 LengthUnit
impl Clone for LengthUnit
Source§fn clone(&self) -> LengthUnit
fn clone(&self) -> LengthUnit
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 LengthUnit
impl Debug for LengthUnit
Source§impl Default for LengthUnit
impl Default for LengthUnit
Source§fn default() -> LengthUnit
fn default() -> LengthUnit
Returns the “default value” for a type. Read more
Source§impl EndianScalar for LengthUnit
impl EndianScalar for LengthUnit
Source§impl<'a> Follow<'a> for LengthUnit
impl<'a> Follow<'a> for LengthUnit
Source§impl Hash for LengthUnit
impl Hash for LengthUnit
Source§impl Ord for LengthUnit
impl Ord for LengthUnit
Source§fn cmp(&self, other: &LengthUnit) -> Ordering
fn cmp(&self, other: &LengthUnit) -> 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 LengthUnit
impl PartialEq for LengthUnit
Source§impl PartialOrd for LengthUnit
impl PartialOrd for LengthUnit
Source§impl Push for LengthUnit
impl Push for LengthUnit
Source§impl<'a> Verifiable for LengthUnit
impl<'a> Verifiable for LengthUnit
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 LengthUnit
impl Eq for LengthUnit
impl SimpleToVerifyInSlice for LengthUnit
impl StructuralPartialEq for LengthUnit
Auto Trait Implementations§
impl Freeze for LengthUnit
impl RefUnwindSafe for LengthUnit
impl Send for LengthUnit
impl Sync for LengthUnit
impl Unpin for LengthUnit
impl UnsafeUnpin for LengthUnit
impl UnwindSafe for LengthUnit
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