[][src]Struct dominator::RefFn

pub struct RefFn<A, B, C> where
    B: ?Sized
{ /* fields omitted */ }

Methods

impl<A, B, C> RefFn<A, B, C> where
    B: ?Sized,
    C: Fn(&A) -> &B, 
[src]

pub fn new(value: A, callback: C) -> Self[src]

pub fn call_ref(&self) -> &B[src]

Trait Implementations

impl<A, C> AsStr for RefFn<A, str, C> where
    C: Fn(&A) -> &str
[src]

impl<'a, A, C> MultiStr for RefFn<A, [&'a str], C> where
    C: Fn(&A) -> &[&'a str]
[src]

fn each<F>(&self, f: F) where
    F: FnMut(&str), 
[src]

Auto Trait Implementations

impl<A, B: ?Sized, C> Send for RefFn<A, B, C> where
    A: Send,
    B: Send,
    C: Send

impl<A, B: ?Sized, C> Sync for RefFn<A, B, C> where
    A: Sync,
    B: Sync,
    C: Sync

Blanket Implementations

impl<A> MultiStr for A where
    A: AsStr
[src]

fn each<F>(&self, f: F) where
    F: FnMut(&str), 
[src]

impl<A> OptionStr for A where
    A: MultiStr
[src]

type Output = A

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.