#[repr(transparent)]pub struct Value(pub u8);Tuple Fields§
§0: u8Implementations§
Source§impl Value
impl Value
pub const NONE: Self
pub const Null: Self
pub const Text: Self
pub const Bool: Self
pub const Integer: Self
pub const Float: Self
pub const List: Self
pub const Document: Self
pub const Time: Self
pub const ENUM_MIN: u8 = 0u8
pub const ENUM_MAX: u8 = 8u8
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 EndianScalar for Value
impl EndianScalar for Value
Source§impl Ord for Value
impl Ord for Value
Source§impl PartialOrd for Value
impl PartialOrd for Value
Source§impl<'a> Verifiable for Value
impl<'a> Verifiable for Value
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 Value
impl Eq for Value
impl SimpleToVerifyInSlice for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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