pub enum IlstDataValue {
Reserved(Vec<u8>),
Utf8(String),
Utf16(String),
Jpeg(Vec<u8>),
Png(Vec<u8>),
Bmp(Vec<u8>),
BeSignedInt(i64),
BeUnsignedInt(u64),
BeFloat32(f32),
BeFloat64(f64),
Unknown(u32, Vec<u8>),
}Expand description
A IlstData value, interpreted according to its wire-level type indicator.
[IlstDataValue::Binary] is the explicit “no type” reserved indicator (0).
IlstDataValue::Unknown covers everything else this crate can’t interpret:
a type indicator it doesn’t recognize, or one it does recognize but whose
raw bytes don’t match (e.g. a BeFloat32 value that isn’t exactly 4
bytes) — it carries the original type indicator so callers can still
inspect it, and round-trips it unchanged on encode.
Variants§
Reserved(Vec<u8>)
Utf8(String)
Utf16(String)
Jpeg(Vec<u8>)
Png(Vec<u8>)
Bmp(Vec<u8>)
BeSignedInt(i64)
BeUnsignedInt(u64)
BeFloat32(f32)
BeFloat64(f64)
Unknown(u32, Vec<u8>)
Trait Implementations§
Source§impl Clone for IlstDataValue
impl Clone for IlstDataValue
Source§impl Debug for IlstDataValue
impl Debug for IlstDataValue
Source§impl PartialEq for IlstDataValue
impl PartialEq for IlstDataValue
impl StructuralPartialEq for IlstDataValue
Auto Trait Implementations§
impl Freeze for IlstDataValue
impl RefUnwindSafe for IlstDataValue
impl Send for IlstDataValue
impl Sync for IlstDataValue
impl Unpin for IlstDataValue
impl UnsafeUnpin for IlstDataValue
impl UnwindSafe for IlstDataValue
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