pub struct Terms<'a> { /* private fields */ }Expand description
One instruction of a function, as the terms a rule could match.
Implementations§
Trait Implementations§
Source§impl Subject for Terms<'_>
impl Subject for Terms<'_>
Source§fn head(&self, node: Term) -> Option<(&str, usize)>
fn head(&self, node: Term) -> Option<(&str, usize)>
The head of a term and how many arguments it has, or nothing if the term is not an
application. An IR instruction answers with its opcode and its width, spelled the way the
rule file spells it.
Auto Trait Implementations§
impl<'a> Freeze for Terms<'a>
impl<'a> RefUnwindSafe for Terms<'a>
impl<'a> Send for Terms<'a>
impl<'a> Sync for Terms<'a>
impl<'a> Unpin for Terms<'a>
impl<'a> UnsafeUnpin for Terms<'a>
impl<'a> UnwindSafe for Terms<'a>
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