pub struct Match<'t> {
pub rule: usize,
pub bindings: Vec<(String, &'t Term)>,
}Expand description
What a successful match found.
Fields§
§rule: usizeThe index into the rule set of the rule that fired.
bindings: Vec<(String, &'t Term)>What the pattern’s variables were bound to, in the order the pattern binds them.
Implementations§
Trait Implementations§
impl<'t> Eq for Match<'t>
impl<'t> StructuralPartialEq for Match<'t>
Auto Trait Implementations§
impl<'t> Freeze for Match<'t>
impl<'t> RefUnwindSafe for Match<'t>
impl<'t> Send for Match<'t>
impl<'t> Sync for Match<'t>
impl<'t> Unpin for Match<'t>
impl<'t> UnsafeUnpin for Match<'t>
impl<'t> UnwindSafe for Match<'t>
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