pub struct NullOperation<H: HostTypes> { /* private fields */ }Expand description
Phase 2 (orphan-closure) — resolver-absent default impl of Operation<H>.
Every accessor returns H::EMPTY_* sentinels (for scalar / host-typed
returns) or a 'static-lifetime reference to a sibling Null*’s ABSENT
const (for trait-typed returns). Downstream provides concrete impls;
this stub closes the ontology-derived trait orphan.
Implementations§
Source§impl<H: HostTypes> NullOperation<H>
impl<H: HostTypes> NullOperation<H>
Sourcepub const ABSENT: NullOperation<H>
pub const ABSENT: NullOperation<H>
Absent-value sentinel. &Self::ABSENT gives every trait-typed accessor a 'static-lifetime reference target.
Trait Implementations§
Source§impl<H: Clone + HostTypes> Clone for NullOperation<H>
impl<H: Clone + HostTypes> Clone for NullOperation<H>
Source§fn clone(&self) -> NullOperation<H>
fn clone(&self) -> NullOperation<H>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<H: HostTypes> Default for NullOperation<H>
impl<H: HostTypes> Default for NullOperation<H>
Source§impl<H: HostTypes> Operation<H> for NullOperation<H>
impl<H: HostTypes> Operation<H> for NullOperation<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.
Source§impl<H: PartialEq + HostTypes> PartialEq for NullOperation<H>
impl<H: PartialEq + HostTypes> PartialEq for NullOperation<H>
Source§fn eq(&self, other: &NullOperation<H>) -> bool
fn eq(&self, other: &NullOperation<H>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<H: Copy + HostTypes> Copy for NullOperation<H>
impl<H: Eq + HostTypes> Eq for NullOperation<H>
impl<H: HostTypes> StructuralPartialEq for NullOperation<H>
Auto Trait Implementations§
impl<H> Freeze for NullOperation<H>
impl<H> RefUnwindSafe for NullOperation<H>where
H: RefUnwindSafe,
impl<H> Send for NullOperation<H>where
H: Send,
impl<H> Sync for NullOperation<H>where
H: Sync,
impl<H> Unpin for NullOperation<H>where
H: Unpin,
impl<H> UnsafeUnpin for NullOperation<H>
impl<H> UnwindSafe for NullOperation<H>where
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