pub enum Term {
Variable(String),
Integer(i64),
Str(String),
Date(u64),
Bytes(Vec<u8>),
Bool(bool),
Set(BTreeSet<Term>),
Parameter(String),
Null,
Array(Vec<Term>),
Map(BTreeMap<MapKey, Term>),
}Expand description
Builder for a Datalog value
Variants§
Variable(String)
Integer(i64)
Str(String)
Date(u64)
Bytes(Vec<u8>)
Bool(bool)
Set(BTreeSet<Term>)
Parameter(String)
Null
Array(Vec<Term>)
Map(BTreeMap<MapKey, Term>)
Implementations§
Source§impl Term
impl Term
pub fn to_datalog(self, symbols: &mut TemporarySymbolTable<'_>) -> Term
pub fn from_datalog( term: Term, symbols: &TemporarySymbolTable<'_>, ) -> Result<Self, Expression>
Trait Implementations§
Source§impl Convert<Term> for Term
impl Convert<Term> for Term
fn convert(&self, symbols: &mut SymbolTable) -> Term
fn convert_from(f: &Term, symbols: &SymbolTable) -> Result<Self, Format>
fn translate( f: &T, from_symbols: &SymbolTable, to_symbols: &mut SymbolTable, ) -> Result<T, Format>
Source§impl From<SystemTime> for Term
impl From<SystemTime> for Term
Source§fn from(t: SystemTime) -> Self
fn from(t: SystemTime) -> Self
Converts to this type from the input type.
Source§impl Ord for Term
impl Ord for Term
Source§impl PartialOrd for Term
impl PartialOrd for Term
Source§impl ToAnyParam for Term
Available on crate feature datalog-macro only.
impl ToAnyParam for Term
Available on crate feature
datalog-macro only.fn to_any_param(&self) -> AnyParam
Source§impl TryFrom<Term> for SystemTime
impl TryFrom<Term> for SystemTime
impl Eq for Term
impl StructuralPartialEq for Term
Auto Trait Implementations§
impl Freeze for Term
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