pub enum EngineValue {
Null,
Number(f64),
Bool(bool),
Str(String),
Array(Vec<EngineValue>),
Dict(Vec<(String, EngineValue)>),
}Expand description
Распарсенное значение EngineData. См. обоснование модели в шапке файла.
Variants§
Null
null (в upstream’е — JS null).
Number(f64)
Число. Upstream всегда хранит number (f64).
Bool(bool)
Булево значение.
Str(String)
Строка. «Имена» хранятся как строка с ведущим / (например /Name).
Array(Vec<EngineValue>)
Массив значений.
Dict(Vec<(String, EngineValue)>)
Словарь << /Key value >> с сохранением порядка ключей.
Implementations§
Trait Implementations§
Source§impl Clone for EngineValue
impl Clone for EngineValue
Source§fn clone(&self) -> EngineValue
fn clone(&self) -> EngineValue
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 EngineValue
impl Debug for EngineValue
Source§impl PartialEq for EngineValue
impl PartialEq for EngineValue
Source§fn eq(&self, other: &EngineValue) -> bool
fn eq(&self, other: &EngineValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EngineValue
Auto Trait Implementations§
impl Freeze for EngineValue
impl RefUnwindSafe for EngineValue
impl Send for EngineValue
impl Sync for EngineValue
impl Unpin for EngineValue
impl UnsafeUnpin for EngineValue
impl UnwindSafe for EngineValue
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