Skip to main content

NullResolverTuple

Struct NullResolverTuple 

Source
pub struct NullResolverTuple;
Expand description

ADR-036 Null resolver tuple — the resolver-absent default. ResolverTuple impl with ARITY = 0 and an empty CATEGORIES list. Applications that don’t declare a resolver! block default to this.

Trait Implementations§

Source§

impl<H> ChainComplexResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies ChainComplexResolver<H> directly so the HasChainComplexResolver<H> accessor can return self cast to &dyn ChainComplexResolver<H>. The resolve method emits the RESOLVER_ABSENT shape violation — recoverable via Term::Try’s default-propagation handler (ADR-022 D3 G9).

Source§

fn resolve( &self, _input: SimplicialComplexBytes<'_>, _out: &mut [u8], ) -> Result<usize, ShapeViolation>

Resolve per-value content for this category. Read more
Source§

impl Clone for NullResolverTuple

Source§

fn clone(&self) -> NullResolverTuple

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> CochainComplexResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies CochainComplexResolver<H> directly so the HasCochainComplexResolver<H> accessor can return self cast to &dyn CochainComplexResolver<H>. The resolve method emits the RESOLVER_ABSENT shape violation — recoverable via Term::Try’s default-propagation handler (ADR-022 D3 G9).

Source§

fn resolve( &self, _input: ChainComplexBytes<'_>, _out: &mut [u8], ) -> Result<usize, ShapeViolation>

Resolve per-value content for this category. Read more
Source§

impl<H> CohomologyGroupResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies CohomologyGroupResolver<H> directly so the HasCohomologyGroupResolver<H> accessor can return self cast to &dyn CohomologyGroupResolver<H>. The resolve method emits the RESOLVER_ABSENT shape violation — recoverable via Term::Try’s default-propagation handler (ADR-022 D3 G9).

Source§

fn resolve( &self, _input: CochainComplexBytes<'_>, _out: &mut [u8], ) -> Result<usize, ShapeViolation>

Resolve per-value content for this category. Read more
Source§

impl Debug for NullResolverTuple

Source§

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

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

impl Default for NullResolverTuple

Source§

fn default() -> NullResolverTuple

Returns the “default value” for a type. Read more
Source§

impl<H> HasChainComplexResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies HasChainComplexResolver<H> (returns self).

Source§

fn chain_complex_resolver(&self) -> &dyn ChainComplexResolver<H>

Returns the ChainComplexResolver impl this ResolverTuple carries.
Source§

impl<H> HasCochainComplexResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies HasCochainComplexResolver<H> (returns self).

Source§

fn cochain_complex_resolver(&self) -> &dyn CochainComplexResolver<H>

Returns the CochainComplexResolver impl this ResolverTuple carries.
Source§

impl<H> HasCohomologyGroupResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies HasCohomologyGroupResolver<H> (returns self).

Source§

fn cohomology_group_resolver(&self) -> &dyn CohomologyGroupResolver<H>

Returns the CohomologyGroupResolver impl this ResolverTuple carries.
Source§

impl<H> HasHomologyGroupResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies HasHomologyGroupResolver<H> (returns self).

Source§

fn homology_group_resolver(&self) -> &dyn HomologyGroupResolver<H>

Returns the HomologyGroupResolver impl this ResolverTuple carries.
Source§

impl<H> HasHomotopyGroupResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies HasHomotopyGroupResolver<H> (returns self).

Source§

fn homotopy_group_resolver(&self) -> &dyn HomotopyGroupResolver<H>

Returns the HomotopyGroupResolver impl this ResolverTuple carries.
Source§

impl<H> HasKInvariantResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies HasKInvariantResolver<H> (returns self).

Source§

fn k_invariant_resolver(&self) -> &dyn KInvariantResolver<H>

Returns the KInvariantResolver impl this ResolverTuple carries.
Source§

impl<H> HasNerveResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies HasNerveResolver<H> (returns self).

Source§

fn nerve_resolver(&self) -> &dyn NerveResolver<H>

Returns the NerveResolver impl this ResolverTuple carries.
Source§

impl<H> HasPostnikovResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies HasPostnikovResolver<H> (returns self).

Source§

fn postnikov_resolver(&self) -> &dyn PostnikovResolver<H>

Returns the PostnikovResolver impl this ResolverTuple carries.
Source§

impl<H> HomologyGroupResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies HomologyGroupResolver<H> directly so the HasHomologyGroupResolver<H> accessor can return self cast to &dyn HomologyGroupResolver<H>. The resolve method emits the RESOLVER_ABSENT shape violation — recoverable via Term::Try’s default-propagation handler (ADR-022 D3 G9).

Source§

fn resolve( &self, _input: ChainComplexBytes<'_>, _out: &mut [u8], ) -> Result<usize, ShapeViolation>

Resolve per-value content for this category. Read more
Source§

impl<H> HomotopyGroupResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies HomotopyGroupResolver<H> directly so the HasHomotopyGroupResolver<H> accessor can return self cast to &dyn HomotopyGroupResolver<H>. The resolve method emits the RESOLVER_ABSENT shape violation — recoverable via Term::Try’s default-propagation handler (ADR-022 D3 G9).

Source§

fn resolve( &self, _input: PostnikovTowerBytes<'_>, _out: &mut [u8], ) -> Result<usize, ShapeViolation>

Resolve per-value content for this category. Read more
Source§

impl<H> KInvariantResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies KInvariantResolver<H> directly so the HasKInvariantResolver<H> accessor can return self cast to &dyn KInvariantResolver<H>. The resolve method emits the RESOLVER_ABSENT shape violation — recoverable via Term::Try’s default-propagation handler (ADR-022 D3 G9).

Source§

fn resolve( &self, _input: HomotopyGroupsBytes<'_>, _out: &mut [u8], ) -> Result<usize, ShapeViolation>

Resolve per-value content for this category. Read more
Source§

impl<H> NerveResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies NerveResolver<H> directly so the HasNerveResolver<H> accessor can return self cast to &dyn NerveResolver<H>. The resolve method emits the RESOLVER_ABSENT shape violation — recoverable via Term::Try’s default-propagation handler (ADR-022 D3 G9).

Source§

fn resolve( &self, _input: &[u8], _out: &mut [u8], ) -> Result<usize, ShapeViolation>

Resolve per-value content for this category. Read more
Source§

impl<H> PostnikovResolver<H> for NullResolverTuple
where H: Hasher,

ADR-036: NullResolverTuple satisfies PostnikovResolver<H> directly so the HasPostnikovResolver<H> accessor can return self cast to &dyn PostnikovResolver<H>. The resolve method emits the RESOLVER_ABSENT shape violation — recoverable via Term::Try’s default-propagation handler (ADR-022 D3 G9).

Source§

fn resolve( &self, _input: SimplicialComplexBytes<'_>, _out: &mut [u8], ) -> Result<usize, ShapeViolation>

Resolve per-value content for this category. Read more
Source§

impl ResolverTuple for NullResolverTuple

Source§

const ARITY: usize = 0

Number of resolver positions in this tuple (bounded by MAX_RESOLVER_TUPLE_ARITY).
Source§

const CATEGORIES: &'static [ResolverCategory]

Resolver category at each tuple position.
Source§

type ShapeRegistry = EmptyShapeRegistry

ADR-057: the application’s shape-IRI registry. ψ_1’s NerveResolver impl expands ConstraintRef::Recurse references through this registry when computing N(C). Defaults to shape_iri_registry::EmptyShapeRegistry (foundation built-in registry only); applications declaring recursive shapes via the SDK register_shape! macro thread the marker type through their resolver!-declared ResolverTuple.
Source§

impl Copy for NullResolverTuple

Auto Trait Implementations§

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> Same for T

Source§

type Output = T

Should always be Self
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.