pub struct ResolvedHopfFiber<'r, R, H>where
R: HopfFiberResolver<H>,
H: HostTypes,{ /* private fields */ }Expand description
Phase 8 (orphan-closure) — content-addressed wrapper for HopfFiber<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> ResolvedHopfFiber<'r, R, H>where
R: HopfFiberResolver<H>,
H: HostTypes,
impl<'r, R, H> ResolvedHopfFiber<'r, R, H>where
R: HopfFiberResolver<H>,
H: HostTypes,
Sourcepub fn new(
handle: HopfFiberHandle<H>,
resolver: &'r R,
) -> ResolvedHopfFiber<'r, R, H>
pub fn new( handle: HopfFiberHandle<H>, resolver: &'r R, ) -> ResolvedHopfFiber<'r, R, H>
Construct the wrapper, eagerly resolving the handle.
Sourcepub const fn handle(&self) -> HopfFiberHandle<H>
pub const fn handle(&self) -> HopfFiberHandle<H>
The handle this wrapper resolves.
Sourcepub const fn record(&self) -> Option<&HopfFiberRecord<H>>
pub const fn record(&self) -> Option<&HopfFiberRecord<H>>
The cached record, or None when the resolver returned None.
Trait Implementations§
Source§impl<'r, R, H> HopfFiber<H> for ResolvedHopfFiber<'r, R, H>where
R: HopfFiberResolver<H>,
H: HostTypes,
impl<'r, R, H> HopfFiber<H> for ResolvedHopfFiber<'r, R, H>where
R: HopfFiberResolver<H>,
H: HostTypes,
Source§fn fiber_dimension(&self) -> u64
fn fiber_dimension(&self) -> u64
The dimension of the Hopf fiber sphere.
Source§fn total_space(&self) -> &<H as HostTypes>::HostString
fn total_space(&self) -> &<H as HostTypes>::HostString
The total space of the Hopf fibration.
Source§fn base_space(&self) -> &<H as HostTypes>::HostString
fn base_space(&self) -> &<H as HostTypes>::HostString
The base space of the Hopf fibration.
Source§fn fiber_sphere(&self) -> &<H as HostTypes>::HostString
fn fiber_sphere(&self) -> &<H as HostTypes>::HostString
The fiber sphere designation (e.g. S⁰, S¹).
Auto Trait Implementations§
impl<'r, R, H> Freeze for ResolvedHopfFiber<'r, R, H>
impl<'r, R, H> RefUnwindSafe for ResolvedHopfFiber<'r, R, H>
impl<'r, R, H> Send for ResolvedHopfFiber<'r, R, H>
impl<'r, R, H> Sync for ResolvedHopfFiber<'r, R, H>
impl<'r, R, H> Unpin for ResolvedHopfFiber<'r, R, H>where
H: Unpin,
impl<'r, R, H> UnsafeUnpin for ResolvedHopfFiber<'r, R, H>
impl<'r, R, H> UnwindSafe for ResolvedHopfFiber<'r, R, H>
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