pub enum MetaValue {
None,
Bool(bool),
Int(i64),
Float(f64),
Str(String),
List(Vec<MetaValue>),
}Expand description
One value in a style’s Meta. Upstream’s meta is any marshal-able
Python value; this port keeps the scalar subset plus lists.
Equality follows marshal’s bytes: true is not 1, 1 is not 1.0, and
floats compare by bit pattern (so NaN == NaN and 0.0 != -0.0).
Variants§
None
Python None.
Bool(bool)
Int(i64)
Float(f64)
Str(String)
List(Vec<MetaValue>)
A list or tuple of values.
Trait Implementations§
impl Eq for MetaValue
Auto Trait Implementations§
impl Freeze for MetaValue
impl RefUnwindSafe for MetaValue
impl Send for MetaValue
impl Sync for MetaValue
impl Unpin for MetaValue
impl UnsafeUnpin for MetaValue
impl UnwindSafe for MetaValue
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.