pub enum Value {
Bool(bool),
Number(f64),
Constant(Constant),
String(CompactString),
Image(Rc<(Vec<u8>, Option<(f64, f64)>, CompactString)>),
Audio(Rc<(Vec<u8>, CompactString)>),
List(Vec<Value>, Option<RefId>),
Ref(RefId),
}
Variants§
Bool(bool)
Number(f64)
Constant(Constant)
String(CompactString)
Image(Rc<(Vec<u8>, Option<(f64, f64)>, CompactString)>)
Audio(Rc<(Vec<u8>, CompactString)>)
List(Vec<Value>, Option<RefId>)
Ref(RefId)
Trait Implementations§
Source§impl From<CompactString> for Value
impl From<CompactString> for Value
Source§fn from(v: CompactString) -> Value
fn from(v: CompactString) -> Value
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Value
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