[][src]Enum veriform::field::WireType

#[repr(u64)]pub enum WireType {
    False,
    True,
    UInt64,
    SInt64,
    Bytes,
    String,
    Message,
    Sequence,
}

Wire type identifiers for Veriform types

Variants

False

False (boolean)

True

True (boolean)

UInt64

64-bit unsigned integer

SInt64

64-bit (zigzag) signed integer

Bytes

Binary data

String

Unicode string

Message

Nested Veriform message

Sequence

Sequences

Implementations

impl WireType[src]

pub fn from_unmasked(value: u64) -> Self[src]

Decode a WireType from an unmasked u64

pub fn is_dynamically_sized(self) -> bool[src]

Is this a dynamically-sized WireType?

pub const fn to_u8(self) -> u8[src]

Convert a WireType to a byte representation

pub fn decoding_error(self) -> Error[src]

Create a decoding error for this given wire type.

This method is primarily intended to be used by veriform_derive.

Trait Implementations

impl Clone for WireType[src]

impl Copy for WireType[src]

impl Debug for WireType[src]

impl Eq for WireType[src]

impl Ord for WireType[src]

impl PartialEq<WireType> for WireType[src]

impl PartialOrd<WireType> for WireType[src]

impl StructuralEq for WireType[src]

impl StructuralPartialEq for WireType[src]

impl TryFrom<u64> for WireType[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.