pub enum EmberValue {
String(String),
Number(f64),
Boolean(bool),
Array(Vec<EmberValue>),
Object(HashMap<String, EmberValue>),
Null,
}
Expand description
Values that can be passed to templates
Variants§
String(String)
Number(f64)
Boolean(bool)
Array(Vec<EmberValue>)
Object(HashMap<String, EmberValue>)
Null
Trait Implementations§
Source§impl Clone for EmberValue
impl Clone for EmberValue
Source§fn clone(&self) -> EmberValue
fn clone(&self) -> EmberValue
Returns a duplicate of the value. Read more
1.0.0 · 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 EmberValue
impl Debug for EmberValue
Source§impl From<&str> for EmberValue
impl From<&str> for EmberValue
Source§impl From<HashMap<String, EmberValue>> for EmberValue
impl From<HashMap<String, EmberValue>> for EmberValue
Source§impl From<String> for EmberValue
impl From<String> for EmberValue
Source§impl From<Value> for EmberValue
impl From<Value> for EmberValue
Source§impl<T: Into<EmberValue>> From<Vec<T>> for EmberValue
impl<T: Into<EmberValue>> From<Vec<T>> for EmberValue
Source§impl From<bool> for EmberValue
impl From<bool> for EmberValue
Source§impl From<f64> for EmberValue
impl From<f64> for EmberValue
Auto Trait Implementations§
impl Freeze for EmberValue
impl RefUnwindSafe for EmberValue
impl Send for EmberValue
impl Sync for EmberValue
impl Unpin for EmberValue
impl UnwindSafe for EmberValue
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