Enum aterm::TermPlaceholder
[−]
[src]
pub enum TermPlaceholder<Rec> { Int, String, Real, Term, Application(Box<[Rec]>), List, Placeholder, Blob, Long, }
These placeholders match the constructors of Term. The Application has sub-placeholders for the children of the constructor. The Term placeholder is basically a wildcard, it matches anything.
Variants
Int
String
Real
Term
Application(Box<[Rec]>)
List
Placeholder
Blob
Long
Methods
impl<Rec> TermPlaceholder<Rec>
[src]
fn cons_string(&self) -> &'static str
fn to_template<'s, F>(&self, factory: &'s F) -> Rec where
F: ATermFactory<'s, ATermRef = Rec>,
Rec: Clone + Borrow<<F as ATermFactory<'s>>::ATerm>,
F: ATermFactory<'s, ATermRef = Rec>,
Rec: Clone + Borrow<<F as ATermFactory<'s>>::ATerm>,
Trait Implementations
impl<Rec: Debug> Debug for TermPlaceholder<Rec>
[src]
impl<Rec: PartialEq> PartialEq for TermPlaceholder<Rec>
[src]
fn eq(&self, __arg_0: &TermPlaceholder<Rec>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TermPlaceholder<Rec>) -> bool
This method tests for !=
.
impl<Rec: Eq> Eq for TermPlaceholder<Rec>
[src]
impl<Rec: Clone> Clone for TermPlaceholder<Rec>
[src]
fn clone(&self) -> TermPlaceholder<Rec>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<Rec: Hash> Hash for TermPlaceholder<Rec>
[src]
fn hash<__HRec: Hasher>(&self, __arg_0: &mut __HRec)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<AR> ATermWrite for TermPlaceholder<AR> where
AR: ATermWrite,
[src]
AR: ATermWrite,