pub enum ArenaEntry<T: ArenaTypes> {
Int(i64),
String(Arc<str>),
List(ArenaList),
Tuple(Vec<NanValue>),
Map(T::Map),
Vector(Vec<NanValue>),
Record {
type_id: u32,
fields: Vec<NanValue>,
},
Variant {
type_id: u32,
variant_id: u16,
fields: Vec<NanValue>,
},
Fn(Arc<T::Fn>),
Builtin(Arc<str>),
Namespace {
name: Arc<str>,
members: Vec<(Arc<str>, NanValue)>,
},
Boxed(NanValue),
}Variants§
Int(i64)
String(Arc<str>)
List(ArenaList)
Tuple(Vec<NanValue>)
Map(T::Map)
Vector(Vec<NanValue>)
Record
Variant
Fn(Arc<T::Fn>)
Builtin(Arc<str>)
Namespace
Boxed(NanValue)
Trait Implementations§
Source§impl<T: Clone + ArenaTypes> Clone for ArenaEntry<T>
impl<T: Clone + ArenaTypes> Clone for ArenaEntry<T>
Source§fn clone(&self) -> ArenaEntry<T>
fn clone(&self) -> ArenaEntry<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for ArenaEntry<T>
impl<T> RefUnwindSafe for ArenaEntry<T>
impl<T> Send for ArenaEntry<T>
impl<T> Sync for ArenaEntry<T>
impl<T> Unpin for ArenaEntry<T>
impl<T> UnsafeUnpin for ArenaEntry<T>
impl<T> UnwindSafe for ArenaEntry<T>
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