Skip to main content

CanComputeRef

Trait CanComputeRef 

Source
pub trait CanComputeRef<Code, Input> {
    type Output;

    // Required method
    fn compute_ref(
        &self,
        _code: PhantomData<Code>,
        input: &Input,
    ) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn compute_ref(&self, _code: PhantomData<Code>, input: &Input) -> Self::Output

Implementors§

Source§

impl<__Context__, Code, Input> CanComputeRef<Code, Input> for __Context__
where __Context__: DelegateComponent<ComputerRefComponent>, __Context__::Delegate: ComputerRef<__Context__, Code, Input>,

Source§

type Output = <<__Context__ as DelegateComponent<ComputerRefComponent>>::Delegate as ComputerRef<__Context__, Code, Input>>::Output