pub enum QvdSymbol {
Int(i32),
Double(f64),
Text(String),
DualInt(i32, String),
DualDouble(f64, String),
}Expand description
Represents a single value in a QVD symbol table.
Variants§
Int(i32)
Type 0x01: 4-byte signed integer (little-endian)
Double(f64)
Type 0x02: 8-byte IEEE 754 double (little-endian)
Text(String)
Type 0x04: null-terminated UTF-8 string
DualInt(i32, String)
Type 0x05: 4-byte integer + null-terminated string representation
DualDouble(f64, String)
Type 0x06: 8-byte double + null-terminated string representation
Implementations§
Source§impl QvdSymbol
impl QvdSymbol
Sourcepub fn to_string_repr(&self) -> String
pub fn to_string_repr(&self) -> String
Returns the string representation of this symbol.
Sourcepub fn binary_size(&self) -> usize
pub fn binary_size(&self) -> usize
Returns the binary size of this symbol in the symbol table.
Trait Implementations§
impl Eq for QvdSymbol
Auto Trait Implementations§
impl Freeze for QvdSymbol
impl RefUnwindSafe for QvdSymbol
impl Send for QvdSymbol
impl Sync for QvdSymbol
impl Unpin for QvdSymbol
impl UnsafeUnpin for QvdSymbol
impl UnwindSafe for QvdSymbol
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