pub struct ResolvedCompositionExpression<'r, R: CompositionExpressionResolver<H>, H: HostTypes> { /* private fields */ }Expand description
Phase 8 (orphan-closure) — content-addressed wrapper for CompositionExpression<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: CompositionExpressionResolver<H>, H: HostTypes> ResolvedCompositionExpression<'r, R, H>
impl<'r, R: CompositionExpressionResolver<H>, H: HostTypes> ResolvedCompositionExpression<'r, R, H>
Sourcepub fn new(handle: CompositionExpressionHandle<H>, resolver: &'r R) -> Self
pub fn new(handle: CompositionExpressionHandle<H>, resolver: &'r R) -> Self
Construct the wrapper, eagerly resolving the handle.
Sourcepub const fn handle(&self) -> CompositionExpressionHandle<H>
pub const fn handle(&self) -> CompositionExpressionHandle<H>
The handle this wrapper resolves.
Sourcepub const fn record(&self) -> Option<&CompositionExpressionRecord<H>>
pub const fn record(&self) -> Option<&CompositionExpressionRecord<H>>
The cached record, or None when the resolver returned None.
Trait Implementations§
impl<'r, R: CompositionExpressionResolver<H>, H: HostTypes> CompositionExpression<H> for ResolvedCompositionExpression<'r, R, H>
impl<'r, R: CompositionExpressionResolver<H>, H: HostTypes> TermExpression<H> for ResolvedCompositionExpression<'r, R, H>
Auto Trait Implementations§
impl<'r, R, H> Freeze for ResolvedCompositionExpression<'r, R, H>
impl<'r, R, H> RefUnwindSafe for ResolvedCompositionExpression<'r, R, H>where
R: RefUnwindSafe,
H: RefUnwindSafe,
impl<'r, R, H> Send for ResolvedCompositionExpression<'r, R, H>
impl<'r, R, H> Sync for ResolvedCompositionExpression<'r, R, H>
impl<'r, R, H> Unpin for ResolvedCompositionExpression<'r, R, H>where
H: Unpin,
impl<'r, R, H> UnsafeUnpin for ResolvedCompositionExpression<'r, R, H>
impl<'r, R, H> UnwindSafe for ResolvedCompositionExpression<'r, R, H>where
R: RefUnwindSafe,
H: UnwindSafe,
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