Skip to main content

AddressResolverTuple

Struct AddressResolverTuple 

Source
pub struct AddressResolverTuple<H: Hasher> {
    pub nerve: AddressNerveResolver<H>,
    pub chain_complex: AddressChainComplexResolver<H>,
    pub homology_groups: AddressHomologyGroupResolver<H>,
    pub cochain_complex: AddressCochainComplexResolver<H>,
    pub cohomology_groups: AddressCohomologyGroupResolver<H>,
    pub postnikov: AddressPostnikovResolver<H>,
    pub homotopy_groups: AddressHomotopyGroupResolver<H>,
    pub k_invariants: AddressKInvariantResolver<H>,
    /* private fields */
}

Fields§

§nerve: AddressNerveResolver<H>§chain_complex: AddressChainComplexResolver<H>§homology_groups: AddressHomologyGroupResolver<H>§cochain_complex: AddressCochainComplexResolver<H>§cohomology_groups: AddressCohomologyGroupResolver<H>§postnikov: AddressPostnikovResolver<H>§homotopy_groups: AddressHomotopyGroupResolver<H>§k_invariants: AddressKInvariantResolver<H>

Trait Implementations§

Source§

impl<H: Hasher> Default for AddressResolverTuple<H>

Source§

fn default() -> Self

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

impl<H: Hasher> HasChainComplexResolver<H> for AddressResolverTuple<H>

Source§

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

Returns the ChainComplexResolver impl this ResolverTuple carries.
Source§

impl<H: Hasher> HasCochainComplexResolver<H> for AddressResolverTuple<H>

Source§

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

Returns the CochainComplexResolver impl this ResolverTuple carries.
Source§

impl<H: Hasher> HasCohomologyGroupResolver<H> for AddressResolverTuple<H>

Source§

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

Returns the CohomologyGroupResolver impl this ResolverTuple carries.
Source§

impl<H: Hasher> HasHomologyGroupResolver<H> for AddressResolverTuple<H>

Source§

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

Returns the HomologyGroupResolver impl this ResolverTuple carries.
Source§

impl<H: Hasher> HasHomotopyGroupResolver<H> for AddressResolverTuple<H>

Source§

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

Returns the HomotopyGroupResolver impl this ResolverTuple carries.
Source§

impl<H: Hasher> HasKInvariantResolver<H> for AddressResolverTuple<H>

Source§

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

Returns the KInvariantResolver impl this ResolverTuple carries.
Source§

impl<H: Hasher> HasNerveResolver<H> for AddressResolverTuple<H>

Source§

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

Returns the NerveResolver impl this ResolverTuple carries.
Source§

impl<H: Hasher> HasPostnikovResolver<H> for AddressResolverTuple<H>

Source§

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

Returns the PostnikovResolver impl this ResolverTuple carries.
Source§

impl PrismModel<DefaultHostTypes, AddrBounds, Sha256Hasher, AddressResolverTuple<Sha256Hasher>> for AddressModel

Source§

type Input = JsonInput

Input feature type — a ConstrainedTypeShape impl declared in foundation vocabulary. Per wiki ADR-023, Input is also bound by IntoBindingValue so run_route can serialize the runtime input value into the CompileUnit binding table for Term::Variable { name_index: 0 } (the route’s input-parameter slot per ADR-022 D3 G2).
Source§

type Output = AddressLabel

Output label type — a ConstrainedTypeShape impl declared in foundation vocabulary that is also a crate::enforcement::GroundedShape.
Source§

type Route = AddressRoute

Type-level witness of the term tree mapping Input to Output. Bound by FoundationClosed: the prism_model! macro emits the FoundationClosed impl for this witness iff every node is a foundation-vocabulary item, satisfying the closure check at the application’s compile time per UORassembly (TC-04).
Source§

fn forward( input: <Self as PrismModel<DefaultHostTypes, AddrBounds, Sha256Hasher, AddressResolverTuple<Sha256Hasher>>>::Input, ) -> Result<Grounded<<Self as PrismModel<DefaultHostTypes, AddrBounds, Sha256Hasher, AddressResolverTuple<Sha256Hasher>>>::Output>, PipelineFailure>

The catamorphism into run_route’s runtime carrier. Implementations are emitted by the prism_model! macro from the syntactic Route declaration; the macro derives the body via initiality of Term (wiki ADR-019). The canonical body is run_route::<H, B, A, Self>(input) (per ADR-022 D5). Read more
Source§

impl<H: Hasher> ResolverTuple for AddressResolverTuple<H>

Source§

const ARITY: usize = 8usize

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§

impl<H: Hasher> Sealed for AddressResolverTuple<H>

Auto Trait Implementations§

§

impl<H> Freeze for AddressResolverTuple<H>

§

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

§

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

§

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

§

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

§

impl<H> UnsafeUnpin for AddressResolverTuple<H>

§

impl<H> UnwindSafe for AddressResolverTuple<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> 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.