[][src]Trait tract_onnx::pb_helpers::OptionExt

pub trait OptionExt {
    type Item;
    fn and_try<F, T>(self, f: F) -> TractResult<Option<T>>
    where
        F: Fn(Self::Item) -> TractResult<T>
;
fn and_ok<F, T>(self, f: F) -> TractResult<Option<T>>
    where
        F: Fn(Self::Item) -> T
; }

Associated Types

type Item

Loading content...

Required methods

fn and_try<F, T>(self, f: F) -> TractResult<Option<T>> where
    F: Fn(Self::Item) -> TractResult<T>, 

fn and_ok<F, T>(self, f: F) -> TractResult<Option<T>> where
    F: Fn(Self::Item) -> T, 

Loading content...

Implementations on Foreign Types

impl<A> OptionExt for Option<A>[src]

type Item = A

Loading content...

Implementors

Loading content...