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>
impl<H: HostTypes> NullPartition<H>
Sourcepub const ABSENT: NullPartition<H>
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.
Sourcepub fn from_fingerprint(fingerprint: ContentFingerprint) -> Self
pub fn from_fingerprint(fingerprint: ContentFingerprint) -> Self
Construct a NullPartition with the given content fingerprint. All other fields are resolver-absent defaults.
Sourcepub const fn fingerprint(&self) -> ContentFingerprint
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>
impl<H: Clone + HostTypes> Clone for NullPartition<H>
Source§fn clone(&self) -> NullPartition<H>
fn clone(&self) -> NullPartition<H>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<H: PartialEq + HostTypes> PartialEq for NullPartition<H>
impl<H: PartialEq + HostTypes> PartialEq for NullPartition<H>
Source§fn eq(&self, other: &NullPartition<H>) -> bool
fn eq(&self, other: &NullPartition<H>) -> bool
self and other values to be equal, and is used by ==.Source§impl<H: HostTypes> Partition<H> for NullPartition<H>
impl<H: HostTypes> Partition<H> for NullPartition<H>
Source§type IrreducibleSet = NullIrreducibleSet<H>
type IrreducibleSet = NullIrreducibleSet<H>
IrreducibleSet.Source§type ReducibleSet = NullReducibleSet<H>
type ReducibleSet = NullReducibleSet<H>
ReducibleSet.Source§type UnitGroup = NullUnitGroup<H>
type UnitGroup = NullUnitGroup<H>
UnitGroup.Source§type Complement = NullComplement<H>
type Complement = NullComplement<H>
Complement.Source§type TypeDefinition = NullTypeDefinition<H>
type TypeDefinition = NullTypeDefinition<H>
TypeDefinition.Source§type FreeRank = NullFreeRank<H>
type FreeRank = NullFreeRank<H>
FreeRank.Source§type TagSite = NullTagSite<H>
type TagSite = NullTagSite<H>
TagSite.