pub enum Type {
Utf8String,
EmbeddedData,
Object,
SignedInt,
UnsignedInt,
Float,
Double,
String(String),
Array(usize),
Unknown(u8),
}Expand description
Represents primitive types of data that can be stored in a typedstream
Variants§
Utf8String
Encoded string data, usually embedded in an object. Denoted by:
- Hex:
0x2B, UTF-8:+
EmbeddedData
Encoded bytes that can be parsed again as data. Denoted by:
- Hex:
0x2A, UTF-8:*
Object
An instance of a class, usually with data. Denoted by:
- Hex:
0x40, UTF-8:@
SignedInt
An i8, i16, or i32. Denoted by:
The width is determined by the prefix: i8 has none, i16 has 0x81, and i32 has 0x82.
UnsignedInt
A u8, u16, or u32. Denoted by:
The width is determined by the prefix: u8 has none, u16 has 0x81, and u32 has 0x82.
Float
Double
String(String)
Some text we can reuse later, i.e. a class name.
Array(usize)
An array containing some data of a given length. Denoted by braced digits: [123].
Unknown(u8)
Data for which we do not know the type, likely for something this parser does not implement.
Trait Implementations§
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)