[][src]Struct dominator::RefFn

pub struct RefFn<A, B, C> where
    B: ?Sized,
    C: Fn(&A) -> &B, 
{ /* fields omitted */ }

Implementations

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]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

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

type Output = A

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.