Skip to main content

RhsResolveCtx

Struct RhsResolveCtx 

Source
pub struct RhsResolveCtx<'a, S> {
    pub query_shape: &'a MatchShape,
    /* private fields */
}
Expand description

Resolver state for an entire rule’s RHS.

Query bindings are read-only. Comprehension locals live in lexical scopes, while their IDs come from rule-wide monotonic allocators so sibling comprehensions and actions can safely reuse source names.

Fields§

§query_shape: &'a MatchShape

Implementations§

Source§

impl<'a, S: DenseId> RhsResolveCtx<'a, S>

Source

pub fn new<O, L>(query: &'a ResolvedQuery<O, S, L>) -> Self

Source

pub fn local_shape(&self) -> RhsLocalShape

Auto Trait Implementations§

§

impl<'a, S> Freeze for RhsResolveCtx<'a, S>
where Vec<Option<S>>: Freeze, &'a [S]: Freeze,

§

impl<'a, S> RefUnwindSafe for RhsResolveCtx<'a, S>

§

impl<'a, S> Send for RhsResolveCtx<'a, S>
where Vec<Option<S>>: Send, &'a [S]: Send,

§

impl<'a, S> Sync for RhsResolveCtx<'a, S>
where Vec<Option<S>>: Sync, &'a [S]: Sync,

§

impl<'a, S> Unpin for RhsResolveCtx<'a, S>
where Vec<Option<S>>: Unpin, &'a [S]: Unpin,

§

impl<'a, S> UnsafeUnpin for RhsResolveCtx<'a, S>

§

impl<'a, S> UnwindSafe for RhsResolveCtx<'a, S>
where Vec<Option<S>>: UnwindSafe, &'a [S]: UnwindSafe,

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

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

fn try_from(value: U) -> Result<T, !>

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.