Trait mcoffin_option_ext::OptionExtTup[][src]

pub trait OptionExtTup<T>: Sized {
    fn and_then_tup<F, Ret>(self, f: F) -> Option<(T, Ret)>
    where
        Ret: Sized,
        F: FnOnce(&T) -> Option<Ret>
; fn and_then_tup_flipped<F, Ret>(self, f: F) -> Option<(Ret, T)>
    where
        Ret: Sized,
        F: FnOnce(&T) -> Option<Ret>
, { ... }
fn and_tup<Ret>(self, v: Option<Ret>) -> Option<(T, Ret)> { ... }
fn and_tup_flipped<Ret>(self, v: Option<Ret>) -> Option<(Ret, T)> { ... } }

Extensions for Option for dealing with tuples

Required methods

fn and_then_tup<F, Ret>(self, f: F) -> Option<(T, Ret)> where
    Ret: Sized,
    F: FnOnce(&T) -> Option<Ret>, 
[src]

Loading content...

Provided methods

fn and_then_tup_flipped<F, Ret>(self, f: F) -> Option<(Ret, T)> where
    Ret: Sized,
    F: FnOnce(&T) -> Option<Ret>, 
[src]

fn and_tup<Ret>(self, v: Option<Ret>) -> Option<(T, Ret)>[src]

fn and_tup_flipped<Ret>(self, v: Option<Ret>) -> Option<(Ret, T)>[src]

Loading content...

Implementations on Foreign Types

impl<T: Sized> OptionExtTup<T> for Option<T>[src]

Loading content...

Implementors

Loading content...