pub struct CollectionRelation<'a, G: Scope> { /* private fields */ }
Expand description
A collection and variable bindings.
Trait Implementations§
Source§impl<'a, G: Scope> AsBinding for CollectionRelation<'a, G>
impl<'a, G: Scope> AsBinding for CollectionRelation<'a, G>
Source§fn binds(&self, variable: u32) -> Option<usize>
fn binds(&self, variable: u32) -> Option<usize>
Iff the binding has opinions about the given variable, this will
return the offset, otherwise None.
Source§fn ready_to_extend(&self, _prefix: &dyn AsBinding) -> Option<u32>
fn ready_to_extend(&self, _prefix: &dyn AsBinding) -> Option<u32>
Returns an optional variable by which this binding could
extend the given prefix.
Source§fn required_to_extend(
&self,
_prefix: &dyn AsBinding,
_target: u32,
) -> Option<Option<u32>>
fn required_to_extend( &self, _prefix: &dyn AsBinding, _target: u32, ) -> Option<Option<u32>>
Returns an optional variable which must be bound by the prefix
in order for this binding to extend the prefix. If None, then
this binding can never be used to extend the prefix to the
specified variable (e.g. because it doesn’t even bind it).
Auto Trait Implementations§
impl<'a, G> Freeze for CollectionRelation<'a, G>where
G: Freeze,
impl<'a, G> !RefUnwindSafe for CollectionRelation<'a, G>
impl<'a, G> !Send for CollectionRelation<'a, G>
impl<'a, G> !Sync for CollectionRelation<'a, G>
impl<'a, G> Unpin for CollectionRelation<'a, G>where
G: Unpin,
impl<'a, G> !UnwindSafe for CollectionRelation<'a, G>
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