Skip to main content

ResolvedCommutativeSubspace

Struct ResolvedCommutativeSubspace 

Source
pub struct ResolvedCommutativeSubspace<'r, R, H>{ /* private fields */ }
Expand description

Phase 8 (orphan-closure) — content-addressed wrapper for CommutativeSubspace<H>.

Caches the resolver’s lookup at construction. Accessors return the cached record’s fields when present, falling back to the Null{Class}<H> absent sentinels when the resolver returned None. Object accessors always return absent sentinels — use the resolve_{m} chain methods to descend into sub-records.

Implementations§

Source§

impl<'r, R, H> ResolvedCommutativeSubspace<'r, R, H>

Source

pub fn new( handle: CommutativeSubspaceHandle<H>, resolver: &'r R, ) -> ResolvedCommutativeSubspace<'r, R, H>

Construct the wrapper, eagerly resolving the handle.

Source

pub const fn handle(&self) -> CommutativeSubspaceHandle<H>

The handle this wrapper resolves.

Source

pub const fn resolver(&self) -> &'r R

The resolver supplied at construction.

Source

pub const fn record(&self) -> Option<&CommutativeSubspaceRecord<H>>

The cached record, or None when the resolver returned None.

Source§

impl<'r, R, H> ResolvedCommutativeSubspace<'r, R, H>

Source

pub fn resolve_subspace_ref<'r2, R2>( &self, r: &'r2 R2, ) -> Option<ResolvedCommutativeSubspace<'r2, R2, H>>

Promote the subspace_ref handle on the cached record into a resolved wrapper, given a resolver for the range class. Returns None if no record was resolved at construction.

Source

pub fn resolve_commutator_ref<'r2, R2>( &self, r: &'r2 R2, ) -> Option<ResolvedCommutator<'r2, R2, H>>
where R2: CommutatorResolver<H>,

Promote the commutator_ref handle on the cached record into a resolved wrapper, given a resolver for the range class. Returns None if no record was resolved at construction.

Trait Implementations§

Source§

impl<'r, R, H> CommutativeSubspace<H> for ResolvedCommutativeSubspace<'r, R, H>

Source§

type CommutativeSubspaceTarget = NullCommutativeSubspace<H>

Associated type for CommutativeSubspace.
Source§

type Commutator = NullCommutator<H>

Associated type for Commutator.
Source§

fn subspace_ref( &self, ) -> &<ResolvedCommutativeSubspace<'r, R, H> as CommutativeSubspace<H>>::CommutativeSubspaceTarget

The commutative subspace selected by pairwise convergence.
Source§

fn commutator_ref( &self, ) -> &<ResolvedCommutativeSubspace<'r, R, H> as CommutativeSubspace<H>>::Commutator

Reference to the commutator pair for this convergence.

Auto Trait Implementations§

§

impl<'r, R, H> Freeze for ResolvedCommutativeSubspace<'r, R, H>

§

impl<'r, R, H> RefUnwindSafe for ResolvedCommutativeSubspace<'r, R, H>

§

impl<'r, R, H> Send for ResolvedCommutativeSubspace<'r, R, H>
where R: Sync, H: Send,

§

impl<'r, R, H> Sync for ResolvedCommutativeSubspace<'r, R, H>
where R: Sync, H: Sync,

§

impl<'r, R, H> Unpin for ResolvedCommutativeSubspace<'r, R, H>
where H: Unpin,

§

impl<'r, R, H> UnsafeUnpin for ResolvedCommutativeSubspace<'r, R, H>

§

impl<'r, R, H> UnwindSafe for ResolvedCommutativeSubspace<'r, R, H>

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> Same for T

Source§

type Output = T

Should always be Self
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.