Enum wfrs_model::json::ArchivedJsonNumber
source · #[repr(u8)]pub enum ArchivedJsonNumber{
PosInt(Archived<u64>),
NegInt(Archived<i64>),
Float(Archived<f64>),
}Expand description
An archived JsonNumber
Variants§
PosInt(Archived<u64>)
Tuple Fields
§
0: Archived<u64>The archived counterpart of JsonNumber::PosInt::0
The archived counterpart of JsonNumber::PosInt
NegInt(Archived<i64>)
Tuple Fields
§
0: Archived<i64>The archived counterpart of JsonNumber::NegInt::0
The archived counterpart of JsonNumber::NegInt
Float(Archived<f64>)
Tuple Fields
§
0: Archived<f64>The archived counterpart of JsonNumber::Float::0
The archived counterpart of JsonNumber::Float
Trait Implementations§
source§impl<__C: ?Sized> CheckBytes<__C> for ArchivedJsonNumber
impl<__C: ?Sized> CheckBytes<__C> for ArchivedJsonNumber
source§unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, EnumCheckError<u8>>
unsafe fn check_bytes<'__bytecheck>( value: *const Self, context: &mut __C ) -> Result<&'__bytecheck Self, EnumCheckError<u8>>
Checks whether the given pointer points to a valid value within the
given context. Read more
source§impl Debug for ArchivedJsonNumber
impl Debug for ArchivedJsonNumber
source§impl Display for ArchivedJsonNumber
impl Display for ArchivedJsonNumber
source§impl PartialEq<JsonNumber> for ArchivedJsonNumber
impl PartialEq<JsonNumber> for ArchivedJsonNumber
source§fn eq(&self, other: &JsonNumber) -> bool
fn eq(&self, other: &JsonNumber) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<JsonNumber> for ArchivedJsonNumber
impl PartialOrd<JsonNumber> for ArchivedJsonNumber
source§fn partial_cmp(&self, other: &JsonNumber) -> Option<Ordering>
fn partial_cmp(&self, other: &JsonNumber) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ArchivedJsonNumber
impl Send for ArchivedJsonNumber
impl Sync for ArchivedJsonNumber
impl Unpin for ArchivedJsonNumber
impl UnwindSafe for ArchivedJsonNumber
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.