Skip to main content

NullPartition

Struct NullPartition 

Source
pub struct NullPartition<H: HostTypes> { /* private fields */ }
Expand description

Resolver-absent default Partition<H>. Embeds inline stubs for every sub-trait associated type so Partition<H> accessors return references to fields rather than to statics. The only meaningful state is the fingerprint; everything else uses HostTypes::EMPTY_* defaults. Returned by the three witness trait impls’ left_factor / right_factor / left_summand / etc. accessors as the resolver-absent value pathway. Consumers needing real partition data pair the sibling PartitionHandle with a PartitionResolver instead.

Implementations§

Source§

impl<H: HostTypes> NullPartition<H>

Source

pub const ABSENT: NullPartition<H>

Phase 2 (orphan-closure): absent-value sentinel used by Null stubs in other namespaces to satisfy &Self::Partition return borrows.

Source

pub fn from_fingerprint(fingerprint: ContentFingerprint) -> Self

Construct a NullPartition with the given content fingerprint. All other fields are resolver-absent defaults.

Source

pub const fn fingerprint(&self) -> ContentFingerprint

Returns the content fingerprint identifying which Partition this stub stands in for.

Trait Implementations§

Source§

impl<H: Clone + HostTypes> Clone for NullPartition<H>

Source§

fn clone(&self) -> NullPartition<H>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<H: Debug + HostTypes> Debug for NullPartition<H>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<H: Hash + HostTypes> Hash for NullPartition<H>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<H: PartialEq + HostTypes> PartialEq for NullPartition<H>

Source§

fn eq(&self, other: &NullPartition<H>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<H: HostTypes> Partition<H> for NullPartition<H>

Source§

type IrreducibleSet = NullIrreducibleSet<H>

Associated type for IrreducibleSet.
Source§

type ReducibleSet = NullReducibleSet<H>

Associated type for ReducibleSet.
Source§

type UnitGroup = NullUnitGroup<H>

Associated type for UnitGroup.
Source§

type Complement = NullComplement<H>

Associated type for Complement.
Source§

type TypeDefinition = NullTypeDefinition<H>

Associated type for TypeDefinition.
Source§

type FreeRank = NullFreeRank<H>

Associated type for FreeRank.
Source§

type TagSite = NullTagSite<H>

Associated type for TagSite.
Source§

fn irreducibles(&self) -> &Self::IrreducibleSet

The irreducible component of this partition.
Source§

fn reducibles(&self) -> &Self::ReducibleSet

The reducible component of this partition.
Source§

fn units(&self) -> &Self::UnitGroup

The units component of this partition.
Source§

fn exterior(&self) -> &Self::Complement

The exterior component of this partition.
Source§

fn density(&self) -> H::Decimal

The irreducible density of this partition: |Irr| / |A|, where A is the active carrier.
Source§

fn source_type(&self) -> &Self::TypeDefinition

The type declaration that was resolved to produce this partition.
Source§

fn witt_length(&self) -> u64

The Witt level n at which this partition was computed. The ring has 2^n elements at this level.
Source§

fn site_budget(&self) -> &Self::FreeRank

The site budget associated with this partition.
Source§

fn is_exhaustive(&self) -> bool

Whether the four components of this partition are exhaustive over R_n: |Irr| + |Red| + |Unit| + |Ext| = 2^n (FPM_8). Set by the kernel after verification.
Source§

fn tag_site_of(&self) -> &Self::TagSite

The tag site distinguishing the variants of a PartitionCoproduct. Logically distinct from every data site of either operand (ST_6) and carries the ln 2 entropy quantum of ST_2.
Source§

fn product_category_level(&self) -> &H::HostString

The categorical level at which this construction is a product / coproduct. Values: ‘partition_classification’ (PartitionProduct, PartitionCoproduct), or ‘nerve_topology’ (CartesianPartitionProduct). Prevents misreading the product vs coproduct distinction across levels.
Source§

impl<H: Copy + HostTypes> Copy for NullPartition<H>

Source§

impl<H: Eq + HostTypes> Eq for NullPartition<H>

Source§

impl<H: HostTypes> StructuralPartialEq for NullPartition<H>

Auto Trait Implementations§

§

impl<H> Freeze for NullPartition<H>

§

impl<H> RefUnwindSafe for NullPartition<H>
where H: RefUnwindSafe,

§

impl<H> Send for NullPartition<H>
where H: Send,

§

impl<H> Sync for NullPartition<H>
where H: Sync,

§

impl<H> Unpin for NullPartition<H>
where H: Unpin,

§

impl<H> UnsafeUnpin for NullPartition<H>

§

impl<H> UnwindSafe for NullPartition<H>
where H: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.