pub enum BinaryKvValue {
None,
String(String),
Int32(i32),
Float32(f32),
Pointer(u32),
WideString(String),
Color(u32),
UInt64(u64),
Int64(i64),
Object(HashMap<String, BinaryKvValue>),
}Expand description
A binary KV value.
Variants§
None
No value / null.
String(String)
String value.
Int32(i32)
32-bit integer.
Float32(f32)
32-bit float.
Pointer(u32)
Pointer (32-bit).
WideString(String)
Wide string (UTF-16).
Color(u32)
Color (RGBA).
UInt64(u64)
64-bit unsigned integer.
Int64(i64)
64-bit signed integer.
Object(HashMap<String, BinaryKvValue>)
Nested object.
Implementations§
Source§impl BinaryKvValue
impl BinaryKvValue
Trait Implementations§
Source§impl Clone for BinaryKvValue
impl Clone for BinaryKvValue
Source§fn clone(&self) -> BinaryKvValue
fn clone(&self) -> BinaryKvValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BinaryKvValue
impl Debug for BinaryKvValue
Source§impl PartialEq for BinaryKvValue
impl PartialEq for BinaryKvValue
Source§fn eq(&self, other: &BinaryKvValue) -> bool
fn eq(&self, other: &BinaryKvValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BinaryKvValue
Auto Trait Implementations§
impl Freeze for BinaryKvValue
impl RefUnwindSafe for BinaryKvValue
impl Send for BinaryKvValue
impl Sync for BinaryKvValue
impl Unpin for BinaryKvValue
impl UnsafeUnpin for BinaryKvValue
impl UnwindSafe for BinaryKvValue
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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