Trait Lazy

Source
pub trait Lazy {
    type Value;
    type Values: Values<Value = Self::Value>;

    // Required method
    fn values(self) -> Self::Values;
}

Required Associated Types§

Source

type Value

Source

type Values: Values<Value = Self::Value>

Required Methods§

Source

fn values(self) -> Self::Values

Implementors§

Source§

impl<F, Fut, I, V> Lazy for FromAsyncRangeFn<F>
where F: Fn(Range<usize>, bool) -> Fut + Clone + 'static, Fut: Future<Output = I> + 'static, I: IntoIterator<Item = V>, V: 'static,

Source§

impl<F, Fut, V> Lazy for FromAsyncFn<F>
where F: Fn(usize) -> Fut + Clone + 'static, Fut: Future<Output = V> + 'static, V: 'static,

Source§

impl<F, I, V> Lazy for FromRangeFn<F>
where F: FnMut(Range<usize>, bool) -> I + 'static, I: IntoIterator<Item = V>, V: 'static,

Source§

type Value = V

Source§

type Values = UseLazy<F, V>

Source§

impl<F, V> Lazy for FromFn<F>
where F: FnMut(usize) -> V + 'static, V: 'static,