pub enum Term {
Name(NamePath),
Value(Vec<SimpleValue>),
Function(Box<FunctionalTerm>),
}
Expand description
Corresponds to the grammar rule term
.
Variants§
Name(NamePath)
Value(Vec<SimpleValue>)
Corresponds to the grammar rule predicate_value
.
Function(Box<FunctionalTerm>)
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Term
impl<'de> Deserialize<'de> for Term
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Box<FunctionalTerm, Global>> for Term
impl From<Box<FunctionalTerm, Global>> for Term
source§fn from(v: Box<FunctionalTerm>) -> Self
fn from(v: Box<FunctionalTerm>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnwindSafe for Term
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