#[repr(transparent)]pub struct NumberStyle(pub i8);Tuple Fields§
§0: i8Implementations§
Source§impl NumberStyle
impl NumberStyle
pub const Decimal: Self
pub const Currency: Self
pub const Percent: Self
pub const Unit: Self
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 NumberStyle
impl Clone for NumberStyle
Source§fn clone(&self) -> NumberStyle
fn clone(&self) -> NumberStyle
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 NumberStyle
impl Debug for NumberStyle
Source§impl Default for NumberStyle
impl Default for NumberStyle
Source§fn default() -> NumberStyle
fn default() -> NumberStyle
Returns the “default value” for a type. Read more
Source§impl EndianScalar for NumberStyle
impl EndianScalar for NumberStyle
Source§impl<'a> Follow<'a> for NumberStyle
impl<'a> Follow<'a> for NumberStyle
Source§impl Hash for NumberStyle
impl Hash for NumberStyle
Source§impl Ord for NumberStyle
impl Ord for NumberStyle
Source§fn cmp(&self, other: &NumberStyle) -> Ordering
fn cmp(&self, other: &NumberStyle) -> 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 NumberStyle
impl PartialEq for NumberStyle
Source§impl PartialOrd for NumberStyle
impl PartialOrd for NumberStyle
Source§impl Push for NumberStyle
impl Push for NumberStyle
Source§impl<'a> Verifiable for NumberStyle
impl<'a> Verifiable for NumberStyle
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 NumberStyle
impl Eq for NumberStyle
impl SimpleToVerifyInSlice for NumberStyle
impl StructuralPartialEq for NumberStyle
Auto Trait Implementations§
impl Freeze for NumberStyle
impl RefUnwindSafe for NumberStyle
impl Send for NumberStyle
impl Sync for NumberStyle
impl Unpin for NumberStyle
impl UnsafeUnpin for NumberStyle
impl UnwindSafe for NumberStyle
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