pub enum DYTerm<PT: ProtocolTypes> {
Variable(Variable<PT>),
Application(Function<PT>, Vec<Term<PT>>),
}
Variants§
Variable(Variable<PT>)
A concrete but unspecified Term
(e.g. x
, y
).
See Variable
for more information.
Application(Function<PT>, Vec<Term<PT>>)
Trait Implementations§
source§impl<'de, PT> Deserialize<'de> for DYTerm<PT>where
PT: ProtocolTypes,
impl<'de, PT> Deserialize<'de> for DYTerm<PT>where
PT: ProtocolTypes,
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<PT: ProtocolTypes> Display for DYTerm<PT>
impl<PT: ProtocolTypes> Display for DYTerm<PT>
source§impl<'a, PT: ProtocolTypes> IntoIterator for &'a DYTerm<PT>
impl<'a, PT: ProtocolTypes> IntoIterator for &'a DYTerm<PT>
Having the same mutator for &’a mut Term is not possible in Rust:
source§impl<PT> Serialize for DYTerm<PT>where
PT: ProtocolTypes,
impl<PT> Serialize for DYTerm<PT>where
PT: ProtocolTypes,
impl<PT: Eq + ProtocolTypes> Eq for DYTerm<PT>
impl<PT: ProtocolTypes> StructuralPartialEq for DYTerm<PT>
Auto Trait Implementations§
impl<PT> Freeze for DYTerm<PT>
impl<PT> !RefUnwindSafe for DYTerm<PT>
impl<PT> Send for DYTerm<PT>
impl<PT> Sync for DYTerm<PT>
impl<PT> Unpin for DYTerm<PT>
impl<PT> !UnwindSafe for DYTerm<PT>
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
§impl<T> CloneAny for T
impl<T> CloneAny for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.