#[repr(u64)]pub enum WireType {
False = 0,
True = 1,
UInt64 = 2,
SInt64 = 3,
Bytes = 4,
String = 5,
Message = 6,
Sequence = 7,
}Expand description
Wire type identifiers for Veriform types
Variants§
False = 0
False (boolean)
True = 1
True (boolean)
UInt64 = 2
64-bit unsigned integer
SInt64 = 3
64-bit (zigzag) signed integer
Bytes = 4
Binary data
String = 5
Unicode string
Message = 6
Nested Veriform message
Sequence = 7
Sequences
Implementations§
Source§impl WireType
impl WireType
Sourcepub fn from_unmasked(value: u64) -> Self
pub fn from_unmasked(value: u64) -> Self
Decode a WireType from an unmasked u64
Sourcepub fn is_dynamically_sized(self) -> bool
pub fn is_dynamically_sized(self) -> bool
Is this a dynamically-sized WireType?
Sourcepub fn decoding_error(self) -> Error
pub fn decoding_error(self) -> Error
Create a decoding error for this given wire type.
This method is primarily intended to be used by veriform_derive.
Trait Implementations§
impl Copy for WireType
impl Eq for WireType
Source§impl Ord for WireType
impl Ord for WireType
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for WireType
impl PartialOrd for WireType
impl StructuralPartialEq for WireType
Auto Trait Implementations§
impl Freeze for WireType
impl RefUnwindSafe for WireType
impl Send for WireType
impl Sync for WireType
impl Unpin for WireType
impl UnsafeUnpin for WireType
impl UnwindSafe for WireType
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