[−][src]Enum hatter::Value
Value is the dynamic type that represents an active Hatter object, including objects you define in your own code.
Variants
Bool(bool)
Number(f64)
String(Symbol)
List(List)
Map(Map)
Fn(Fn)
Implementations
impl Value
[src]
pub fn ok(self) -> Result<Value>
[src]
pub fn some(self) -> Option<Value>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn to_bool(&self) -> bool
[src]
pub fn to_f64(&self) -> f64
[src]
pub fn to_str(&self) -> &str
[src]
pub fn typename(&self) -> &str
[src]
Trait Implementations
impl Clone for Value
[src]
impl Debug for Value
[src]
impl Display for Value
[src]
impl<'_, '_> From<&'_ &'_ String> for Value
[src]
impl<'_, '_> From<&'_ &'_ str> for Value
[src]
impl<T: Copy + Into<Value>, '_> From<&'_ [T]> for Value
[src]
impl<'_> From<&'_ String> for Value
[src]
impl<'_> From<&'_ Symbol> for Value
[src]
impl<'_> From<&'_ Value> for Value
[src]
impl<T: Copy + Into<Value>, '_> From<&'_ Vec<T>> for Value
[src]
impl<'_> From<&'_ bool> for Value
[src]
impl<'_> From<&'_ f64> for Value
[src]
impl<'_> From<&'_ i32> for Value
[src]
impl<'_> From<&'_ isize> for Value
[src]
impl<'_> From<&'_ str> for Value
[src]
impl<'_> From<&'_ usize> for Value
[src]
impl<V> From<(V,)> for Value where
V: Into<Value>,
[src]
V: Into<Value>,
impl<V1, V2, V3, V4, V5, V6> From<(V1, V2, V3, V4, V5, V6)> for Value where
V1: Into<Value>,
V2: Into<Value>,
V3: Into<Value>,
V4: Into<Value>,
V5: Into<Value>,
V6: Into<Value>,
[src]
V1: Into<Value>,
V2: Into<Value>,
V3: Into<Value>,
V4: Into<Value>,
V5: Into<Value>,
V6: Into<Value>,
impl<V1, V2, V3, V4, V5> From<(V1, V2, V3, V4, V5)> for Value where
V1: Into<Value>,
V2: Into<Value>,
V3: Into<Value>,
V4: Into<Value>,
V5: Into<Value>,
[src]
V1: Into<Value>,
V2: Into<Value>,
V3: Into<Value>,
V4: Into<Value>,
V5: Into<Value>,
impl<V1, V2, V3, V4> From<(V1, V2, V3, V4)> for Value where
V1: Into<Value>,
V2: Into<Value>,
V3: Into<Value>,
V4: Into<Value>,
[src]
V1: Into<Value>,
V2: Into<Value>,
V3: Into<Value>,
V4: Into<Value>,
impl<V1, V2, V3> From<(V1, V2, V3)> for Value where
V1: Into<Value>,
V2: Into<Value>,
V3: Into<Value>,
[src]
V1: Into<Value>,
V2: Into<Value>,
V3: Into<Value>,
impl<V1, V2> From<(V1, V2)> for Value where
V1: Into<Value>,
V2: Into<Value>,
[src]
V1: Into<Value>,
V2: Into<Value>,
impl<S, V> From<BTreeMap<S, V>> for Value where
S: Into<Symbol>,
V: Into<Value>,
[src]
S: Into<Symbol>,
V: Into<Value>,
impl<F> From<F> for Value where
F: 'static + Fn(Args<'_>) -> Result<Value>,
[src]
F: 'static + Fn(Args<'_>) -> Result<Value>,
impl<S, V> From<HashMap<S, V, RandomState>> for Value where
S: Into<Symbol>,
V: Into<Value>,
[src]
S: Into<Symbol>,
V: Into<Value>,
impl<T> From<Option<T>> for Value where
T: Into<Value>,
[src]
T: Into<Value>,
impl From<Stmt> for Value
[src]
impl From<String> for Value
[src]
impl From<Symbol> for Value
[src]
impl<T: Into<Value>> From<Vec<T>> for Value
[src]
impl From<bool> for Value
[src]
impl From<f64> for Value
[src]
impl From<i32> for Value
[src]
impl From<isize> for Value
[src]
impl From<usize> for Value
[src]
impl PartialEq<Value> for Value
[src]
impl PartialEq<Value> for String
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,