Struct CollectionRelation

Source
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>

Source§

fn variables(&self) -> Vec<u32>

All variables bound by this binding.
Source§

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>

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>>

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).
Source§

fn can_extend(&self, prefix: &dyn AsBinding, target: u32) -> bool

Returns true iff the binding is ready to participate in the extension of a set of prefix variables to a new variable.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.