pub enum Value<'a> {
Show 13 variants
Nil,
Number {
literal: &'a str,
},
String {
literal: &'a str,
},
Boolean {
value: bool,
},
SymbolicValue {
literal: &'a str,
},
Symbol {
namespace: Option<&'a str>,
name: &'a str,
},
Keyword {
namespace: Option<&'a str>,
name: &'a str,
alias: bool,
},
TaggedLiteral {
namespace: Option<&'a str>,
name: &'a str,
value: Box<Value<'a>>,
},
VarQuoted {
namespace: Option<&'a str>,
name: &'a str,
},
List {
values: Box<[Value<'a>]>,
},
Vector {
values: Box<[Value<'a>]>,
},
Set {
values: Box<[Value<'a>]>,
},
Map {
entries: Box<[MapEntry<'a>]>,
},
}Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Value<'a>
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
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