Skip to main content

TryComputerRef

Trait TryComputerRef 

Source
pub trait TryComputerRef<__Context__, Code, Input>: IsProviderFor<TryComputerRefComponent, __Context__, (Code, Input)>
where __Context__: HasErrorType,
{ type Output; // Required method fn try_compute_ref( __context__: &__Context__, _code: PhantomData<Code>, input: &Input, ) -> Result<Self::Output, __Context__::Error>; }

Required Associated Types§

Required Methods§

Source

fn try_compute_ref( __context__: &__Context__, _code: PhantomData<Code>, input: &Input, ) -> Result<Self::Output, __Context__::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> TryComputerRef<__Context__, Code, Input> for UseDelegate<__Components__>
where __Context__: HasErrorType, __Components__: DelegateComponent<Code, Delegate = __Delegate__>, __Delegate__: TryComputerRef<__Context__, Code, Input>,

Source§

type Output = <__Delegate__ as TryComputerRef<__Context__, Code, Input>>::Output

Source§

fn try_compute_ref( __context__: &__Context__, _code: PhantomData<Code>, input: &Input, ) -> Result<Self::Output, __Context__::Error>

Source§

impl<__Context__, Code, Input> TryComputerRef<__Context__, Code, Input> for UseContext
where __Context__: HasErrorType + CanTryComputeRef<Code, Input>,

Source§

type Output = <__Context__ as CanTryComputeRef<Code, Input>>::Output

Source§

fn try_compute_ref( __context__: &__Context__, _code: PhantomData<Code>, input: &Input, ) -> Result<Self::Output, __Context__::Error>

Implementors§

Source§

impl<Context, Code, Input, Provider, Output> TryComputerRef<Context, Code, Input> for PromoteRef<Provider>
where Context: HasErrorType, Provider: for<'a> TryComputer<Context, Code, &'a Input, Output = Output>,

Source§

type Output = Output

Source§

impl<__Component__, __Context__, Code, Input> TryComputerRef<__Context__, Code, Input> for __Component__
where __Context__: HasErrorType, __Component__: DelegateComponent<TryComputerRefComponent> + IsProviderFor<TryComputerRefComponent, __Context__, (Code, Input)>, __Component__::Delegate: TryComputerRef<__Context__, Code, Input>,

Source§

type Output = <<__Component__ as DelegateComponent<TryComputerRefComponent>>::Delegate as TryComputerRef<__Context__, Code, Input>>::Output

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> TryComputerRef<__Context__, Code, Input> for UseInputDelegate<__Components__>
where __Context__: HasErrorType, __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: TryComputerRef<__Context__, Code, Input>,

Source§

type Output = <__Delegate__ as TryComputerRef<__Context__, Code, Input>>::Output