Enum wezterm_dynamic::Value
source · pub enum Value {
Null,
Bool(bool),
String(String),
Array(Array),
Object(Object),
U64(u64),
I64(i64),
F64(OrderedFloat<f64>),
}
Expand description
Represents values of various possible other types. Value is intended to be convertible to the same set of types as Lua and is a superset of the types possible in TOML and JSON.
Variants§
Null
Bool(bool)
String(String)
Array(Array)
Object(Object)
U64(u64)
I64(i64)
F64(OrderedFloat<f64>)
Implementations§
source§impl Value
impl Value
pub fn variant_name(&self) -> &str
pub fn coerce_unsigned(&self) -> Option<u64>
pub fn coerce_signed(&self) -> Option<i64>
pub fn coerce_float(&self) -> Option<f64>
Trait Implementations§
source§impl<'a> Borrow<dyn ObjectKeyTrait + 'a> for Value
impl<'a> Borrow<dyn ObjectKeyTrait + 'a> for Value
source§fn borrow(&self) -> &(dyn ObjectKeyTrait + 'a)
fn borrow(&self) -> &(dyn ObjectKeyTrait + 'a)
Immutably borrows from an owned value. Read more
source§impl FromDynamic for Value
impl FromDynamic for Value
fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>
source§impl FromIterator<Value> for Array
impl FromIterator<Value> for Array
source§impl ObjectKeyTrait for Value
impl ObjectKeyTrait for Value
fn key<'k>(&'k self) -> BorrowedKey<'k>
source§impl Ord for Value
impl Ord for Value
source§impl PartialEq for Value
impl PartialEq for Value
source§impl PartialOrd for Value
impl PartialOrd for Value
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Value
impl StructuralEq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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