pub struct ResolvedCommutativeSubspace<'r, R, H>where
R: CommutativeSubspaceResolver<H>,
H: HostTypes,{ /* 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>where
R: CommutativeSubspaceResolver<H>,
H: HostTypes,
impl<'r, R, H> ResolvedCommutativeSubspace<'r, R, H>where
R: CommutativeSubspaceResolver<H>,
H: HostTypes,
Sourcepub fn new(
handle: CommutativeSubspaceHandle<H>,
resolver: &'r R,
) -> ResolvedCommutativeSubspace<'r, R, H>
pub fn new( handle: CommutativeSubspaceHandle<H>, resolver: &'r R, ) -> ResolvedCommutativeSubspace<'r, R, H>
Construct the wrapper, eagerly resolving the handle.
Sourcepub const fn handle(&self) -> CommutativeSubspaceHandle<H>
pub const fn handle(&self) -> CommutativeSubspaceHandle<H>
The handle this wrapper resolves.
Sourcepub const fn record(&self) -> Option<&CommutativeSubspaceRecord<H>>
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>where
R: CommutativeSubspaceResolver<H>,
H: HostTypes,
impl<'r, R, H> ResolvedCommutativeSubspace<'r, R, H>where
R: CommutativeSubspaceResolver<H>,
H: HostTypes,
Sourcepub fn resolve_subspace_ref<'r2, R2>(
&self,
r: &'r2 R2,
) -> Option<ResolvedCommutativeSubspace<'r2, R2, H>>where
R2: CommutativeSubspaceResolver<H>,
pub fn resolve_subspace_ref<'r2, R2>(
&self,
r: &'r2 R2,
) -> Option<ResolvedCommutativeSubspace<'r2, R2, H>>where
R2: CommutativeSubspaceResolver<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.
Sourcepub fn resolve_commutator_ref<'r2, R2>(
&self,
r: &'r2 R2,
) -> Option<ResolvedCommutator<'r2, R2, H>>where
R2: CommutatorResolver<H>,
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>where
R: CommutativeSubspaceResolver<H>,
H: HostTypes,
impl<'r, R, H> CommutativeSubspace<H> for ResolvedCommutativeSubspace<'r, R, H>where
R: CommutativeSubspaceResolver<H>,
H: HostTypes,
Source§type CommutativeSubspaceTarget = NullCommutativeSubspace<H>
type CommutativeSubspaceTarget = NullCommutativeSubspace<H>
CommutativeSubspace.Source§type Commutator = NullCommutator<H>
type Commutator = NullCommutator<H>
Commutator.