Struct aterm::ATermInner
[−]
[src]
pub struct ATermInner<Rec, B> { pub term: Term<Rec, B>, pub annotations: Box<[Rec]>, }
The annotated term. This only combines the term with the annotations, nothing special.
Fields
term: Term<Rec, B>
The actual term.
annotations: Box<[Rec]>
The annotations on the term. The spec says this is an ATerm list of pairs of ATerms. We extend this to a general list of aterms so we can support more systems (e.g. Stratego/XT).
Methods
impl<Rec, B> ATermInner<Rec, B>
[src]
fn no_annos(term: Term<Rec, B>) -> Self
fn with_annos<A>(term: Term<Rec, B>, annos: A) -> Self where
A: IntoIterator<Item = Rec>,
A: IntoIterator<Item = Rec>,
Trait Implementations
impl<Rec: Debug, B: Debug> Debug for ATermInner<Rec, B>
[src]
impl<Rec: PartialEq, B: PartialEq> PartialEq for ATermInner<Rec, B>
[src]
fn eq(&self, __arg_0: &ATermInner<Rec, B>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ATermInner<Rec, B>) -> bool
This method tests for !=
.
impl<Rec: Eq, B: Eq> Eq for ATermInner<Rec, B>
[src]
impl<Rec: Clone, B: Clone> Clone for ATermInner<Rec, B>
[src]
fn clone(&self) -> ATermInner<Rec, B>
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, B: Hash> Hash for ATermInner<Rec, B>
[src]
fn hash<__HRecB: Hasher>(&self, __arg_0: &mut __HRecB)
Feeds this value into the state given, updating the hasher as necessary.
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 state provided.
impl<Rec, B> ATerm for ATermInner<Rec, B> where
Rec: Borrow<ATermInner<Rec, B>>,
[src]
Rec: Borrow<ATermInner<Rec, B>>,
type Rec = Rec
type Blob = B
fn into_inner(self) -> ATermInner<Rec, B>
fn as_inner(&self) -> &ATermInner<Self::Rec, Self::Blob>
fn get_int(&self) -> Option<i32>
fn get_long(&self) -> Option<i64>
fn get_real(&self) -> Option<f32>
fn get_application(&self) -> Option<(&str, &[Self::Rec])>
fn get_list(&self) -> Option<&[Self::Rec]>
fn get_placeholder(&self) -> Option<&TermPlaceholder<Self::Rec>>
fn get_blob(&self) -> Option<&Self::Blob>
fn get_string(&self) -> Option<String>
fn get_tuple(&self) -> Option<&[Self::Rec]>
impl<Rec, B> Display for ATermInner<Rec, B> where
Rec: ATermWrite,
B: ATermWrite,
[src]
Rec: ATermWrite,
B: ATermWrite,
impl<Rec, B> ATermWrite for ATermInner<Rec, B> where
Rec: ATermWrite,
B: ATermWrite,
[src]
Rec: ATermWrite,
B: ATermWrite,