pub struct ResolvedOperation<'r, R: OperationResolver<H>, H: HostTypes> { /* private fields */ }Expand description
Phase 8 (orphan-closure) — content-addressed wrapper for Operation<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: OperationResolver<H>, H: HostTypes> ResolvedOperation<'r, R, H>
impl<'r, R: OperationResolver<H>, H: HostTypes> ResolvedOperation<'r, R, H>
Sourcepub fn new(handle: OperationHandle<H>, resolver: &'r R) -> Self
pub fn new(handle: OperationHandle<H>, resolver: &'r R) -> Self
Construct the wrapper, eagerly resolving the handle.
Sourcepub const fn handle(&self) -> OperationHandle<H>
pub const fn handle(&self) -> OperationHandle<H>
The handle this wrapper resolves.
Sourcepub const fn record(&self) -> Option<&OperationRecord<H>>
pub const fn record(&self) -> Option<&OperationRecord<H>>
The cached record, or None when the resolver returned None.
Source§impl<'r, R: OperationResolver<H>, H: HostTypes> ResolvedOperation<'r, R, H>
impl<'r, R: OperationResolver<H>, H: HostTypes> ResolvedOperation<'r, R, H>
Sourcepub fn resolve_inverse<'r2, R2: OperationResolver<H>>(
&self,
r: &'r2 R2,
) -> Option<ResolvedOperation<'r2, R2, H>>
pub fn resolve_inverse<'r2, R2: OperationResolver<H>>( &self, r: &'r2 R2, ) -> Option<ResolvedOperation<'r2, R2, H>>
Promote the inverse 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: OperationResolver<H>, H: HostTypes> Operation<H> for ResolvedOperation<'r, R, H>
impl<'r, R: OperationResolver<H>, H: HostTypes> Operation<H> for ResolvedOperation<'r, R, H>
Source§type OperationTarget = NullOperation<H>
type OperationTarget = NullOperation<H>
Associated type for
Operation.Source§fn arity(&self) -> u64
fn arity(&self) -> u64
The number of arguments this operation takes. 1 for unary operations, 2 for binary operations.
Source§fn has_geometric_character(&self) -> GeometricCharacter
fn has_geometric_character(&self) -> GeometricCharacter
The geometric role of this operation in the UOR ring and hypercube geometry. Functional: each operation has exactly one geometric character.
Source§fn inverse(&self) -> &Self::OperationTarget
fn inverse(&self) -> &Self::OperationTarget
The inverse operation: the operation inv_op such that op(x, inv_op(x)) = e for all x, where e is the identity.
Source§fn composed_of(&self) -> &H::HostString
fn composed_of(&self) -> &H::HostString
Ordered list of operations this operation is composed from. Uses rdf:List to preserve application order (first element applied innermost). E.g., succ = neg ∘ bnot is encoded as [op:neg, op:bnot] meaning neg applied to the result of bnot.
Source§fn is_ring_op(&self) -> bool
fn is_ring_op(&self) -> bool
True iff this Operation participates in the Z/(2^n)Z ring-arithmetic vocabulary. Annotation drives the Lean RingOp class generation in UOR/Enforcement.lean.
Auto Trait Implementations§
impl<'r, R, H> Freeze for ResolvedOperation<'r, R, H>
impl<'r, R, H> RefUnwindSafe for ResolvedOperation<'r, R, H>
impl<'r, R, H> Send for ResolvedOperation<'r, R, H>
impl<'r, R, H> Sync for ResolvedOperation<'r, R, H>
impl<'r, R, H> Unpin for ResolvedOperation<'r, R, H>where
H: Unpin,
impl<'r, R, H> UnsafeUnpin for ResolvedOperation<'r, R, H>
impl<'r, R, H> UnwindSafe for ResolvedOperation<'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