Trait anchors::expert::OutputContext[][src]

pub trait OutputContext<'eng> {
    type Engine: Engine + ?Sized;
    fn get<'out, O: 'static>(&self, anchor: &Anchor<O, Self::Engine>) -> &'out O
    where
        'eng: 'out
; }

The context passed to an AnchorInner when its output method is called.

Associated Types

Loading content...

Required methods

fn get<'out, O: 'static>(&self, anchor: &Anchor<O, Self::Engine>) -> &'out O where
    'eng: 'out, 
[src]

If another Anchor during polling indicated its value was ready, the previously calculated value can be accessed with this method. Its implementation is virtually identical to UpdateContext’s get. This is mostly used by AnchorInner implementations that want to return a reference to some other Anchor’s output without cloning.

Loading content...

Implementors

Loading content...