Struct mm0b_parser::TermRef [−][src]
pub struct TermRef<'a> { pub tid: TermId, // some fields omitted }
A reference to an entry in the term table.
Fields
tid: TermId
The index into the term table.
Implementations
impl<'a> TermRef<'a>
[src]
#[must_use]pub fn def(&self) -> bool
[src]
#[must_use]
pub fn def(&self) -> boolReturns true if this is a def
, false for a term
.
#[must_use]pub fn sort(&self) -> SortId
[src]
#[must_use]
pub fn sort(&self) -> SortIdThe return sort of this term/def.
#[must_use]pub fn args(&self) -> &[Arg]ⓘ
[src]
#[must_use]
pub fn args(&self) -> &[Arg]ⓘThe list of arguments of this term/def, not including the return).
#[must_use]pub fn args_and_ret(&self) -> &[Arg]ⓘ
[src]
#[must_use]
pub fn args_and_ret(&self) -> &[Arg]ⓘGet the termdef’s arguments as a slice, INCLUDING the return type
#[must_use]pub fn ret(&self) -> Arg
[src]
#[must_use]
pub fn ret(&self) -> ArgThe return sort and dependencies.
#[must_use]pub fn unify(&self) -> UnifyIter<'a>ⓘ
[src]
#[must_use]
pub fn unify(&self) -> UnifyIter<'a>ⓘThe beginning of the unify stream for the term.
Trait Implementations
impl<'a> Clone for TermRef<'a>
[src]
impl<'a> Copy for TermRef<'a>
[src]
impl<'a> Debug for TermRef<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for TermRef<'a>
impl<'a> Send for TermRef<'a>
impl<'a> Sync for TermRef<'a>
impl<'a> Unpin for TermRef<'a>
impl<'a> UnwindSafe for TermRef<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,