[][src]Struct tfsi::providers::ProvideVal

pub struct ProvideVal<Value>(_);

A Provide over the given Value.

If the Value is a Clone, the ProvideVal<Value> can provide Value (by cloning it) and &Value.

If the Value is not a Clone, the ProvideVal<Value> can only provide &Value.

Thus the Provide<&Value> can be used to provide a reference to some Value without consuming it.

Trait Implementations

impl<Value: Clone> Clone for ProvideVal<Value>[src]

impl<Value: Debug> Debug for ProvideVal<Value>[src]

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

impl<'p, 'd, Output> Provide<'p, 'd, Output, IdxProvideVal> for ProvideVal<Output> where
    'd: 'p,
    Output: 'd,
    Output: Clone
[src]

impl<'p, Output> Provide<'p, 'p, &'p Output, IdxProvideVal> for ProvideVal<Output> where
    Output: 'p, 
[src]

Auto Trait Implementations

impl<Value> RefUnwindSafe for ProvideVal<Value> where
    Value: RefUnwindSafe
[src]

impl<Value> Send for ProvideVal<Value> where
    Value: Send
[src]

impl<Value> Sync for ProvideVal<Value> where
    Value: Sync
[src]

impl<Value> Unpin for ProvideVal<Value> where
    Value: Unpin
[src]

impl<Value> UnwindSafe for ProvideVal<Value> where
    Value: UnwindSafe
[src]

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<'p, 'd, P, T, I> FitRequirement<'p, 'd, RequireOne<'p, 'd, T>, I> for P where
    'd: 'p,
    P: Provide<'p, 'd, T, I>,
    I: 'p,
    T: 'd, 
[src]

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.