#[non_exhaustive]#[repr(u8)]pub enum BinaryType {
None = 0,
String = 1,
Int32 = 2,
Float = 3,
Ptr = 4,
WString = 5,
Color = 6,
UInt64 = 7,
ObjectEnd = 8,
}Expand description
Binary type byte values used in Steam’s binary VDF format.
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.
None = 0
Nested object start marker.
Named None to match Steam SDK’s TYPE_NONE, which indicates a subsection
with child keys rather than a leaf value. In binary VDF, 0x00 followed by
a key name starts a new nested object that continues until ObjectEnd (0x08).
String = 1
String value (null-terminated).
Int32 = 2
32-bit integer value.
Float = 3
32-bit float value.
Ptr = 4
Pointer value.
WString = 5
Wide string value (UTF-16).
Color = 6
Color value (RGBA).
UInt64 = 7
64-bit unsigned integer value.
ObjectEnd = 8
End of object marker.
Implementations§
Trait Implementations§
Source§impl Clone for BinaryType
impl Clone for BinaryType
Source§fn clone(&self) -> BinaryType
fn clone(&self) -> BinaryType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinaryType
impl Debug for BinaryType
Source§impl PartialEq for BinaryType
impl PartialEq for BinaryType
impl Copy for BinaryType
impl Eq for BinaryType
impl StructuralPartialEq for BinaryType
Auto Trait Implementations§
impl Freeze for BinaryType
impl RefUnwindSafe for BinaryType
impl Send for BinaryType
impl Sync for BinaryType
impl Unpin for BinaryType
impl UnwindSafe for BinaryType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.