pub enum Root {
Ty(Arc<String>),
Str(Arc<String>),
F64(f64),
Bool(bool),
Avatar(Box<(Self, Self)>),
Tup(Vec<Self>),
Struct {
name: Box<Self>,
fields: Vec<Self>,
},
Enum {
name: Box<Self>,
variants: Vec<Self>,
},
Instance {
class: usize,
data: Option<Box<Self>>,
},
InstanceTy {
ty: Box<Self>,
data: Option<Box<Self>>,
},
}Expand description
Root knowledge structure.
Variants§
Ty(Arc<String>)
A type.
Str(Arc<String>)
A string value.
F64(f64)
An f64 value.
Bool(bool)
A boolean value.
Avatar(Box<(Self, Self)>)
Describes an avatar, e.g. Option<.T>,
where Option is the avatar and .T is the core.
Tup(Vec<Self>)
Describes a tuple of variable number of items.
Struct
Describes a struct.
Enum
Describes an enum.
Instance
Instance with type reference.
Fields
InstanceTy
Instance with explicit type.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Root
Auto Trait Implementations§
impl Freeze for Root
impl RefUnwindSafe for Root
impl Send for Root
impl Sync for Root
impl Unpin for Root
impl UnwindSafe for Root
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