#[non_exhaustive]pub enum Event<'de> {
}Expand description
A token produced while parsing a CBOR item stream.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unsigned(u64)
An unsigned integer.
Negative(i128)
A negative integer represented by its mathematical value.
Bytes(&'de [u8])
A definite-length byte string.
Text(&'de str)
A definite-length UTF-8 text string.
IndefiniteBytes
The start of an indefinite-length byte string.
IndefiniteText
The start of an indefinite-length text string.
Array(Option<u64>)
The start of an array; None denotes indefinite length.
Map(Option<u64>)
The start of a map; None denotes indefinite length.
Tag(u64)
A semantic tag followed by its tagged item.
Simple(u8)
An unassigned simple value.
Bool(bool)
A Boolean value.
Null
The null value.
Undefined
The undefined value.
Float(f64)
A floating-point value, widened to binary64 when necessary.
Break
The break stop code ending an indefinite-length item.
Trait Implementations§
impl<'de> Copy for Event<'de>
impl<'de> StructuralPartialEq for Event<'de>
Auto Trait Implementations§
impl<'de> Freeze for Event<'de>
impl<'de> RefUnwindSafe for Event<'de>
impl<'de> Send for Event<'de>
impl<'de> Sync for Event<'de>
impl<'de> Unpin for Event<'de>
impl<'de> UnsafeUnpin for Event<'de>
impl<'de> UnwindSafe for Event<'de>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more