[−][src]Struct tfsi::providers::ProvideVal
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]
fn clone(&self) -> ProvideVal<Value>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
'd: 'p,
Output: 'd,
Output: Clone,
impl<'p, Output> Provide<'p, 'p, &'p Output, IdxProvideVal> for ProvideVal<Output> where
Output: 'p,
[src]
Output: 'p,
Auto Trait Implementations
impl<Value> RefUnwindSafe for ProvideVal<Value> where
Value: RefUnwindSafe,
[src]
Value: RefUnwindSafe,
impl<Value> Send for ProvideVal<Value> where
Value: Send,
[src]
Value: Send,
impl<Value> Sync for ProvideVal<Value> where
Value: Sync,
[src]
Value: Sync,
impl<Value> Unpin for ProvideVal<Value> where
Value: Unpin,
[src]
Value: Unpin,
impl<Value> UnwindSafe for ProvideVal<Value> where
Value: UnwindSafe,
[src]
Value: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[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]
'd: 'p,
P: Provide<'p, 'd, T, I>,
I: 'p,
T: 'd,
pub fn fit_requirement(
&'p Self
) -> <RequireOne<'p, 'd, T> as Require<'p, 'd>>::Provider
[src]
&'p Self
) -> <RequireOne<'p, 'd, T> as Require<'p, 'd>>::Provider
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,