[][src]Struct spirit::fragment::driver::OnceDriver

pub struct OnceDriver<F: ToOwned> { /* fields omitted */ }

A Driver for a single-shot initialization.

This driver creates the resource only the first time it is called. On an attempt to call it again it warns if the value of the fragment is different.

Trait Implementations

impl<F> Default for OnceDriver<F> where
    F: ToOwned
[src]

impl<F> Driver<F> for OnceDriver<F> where
    F: Fragment + PartialEq<<F as ToOwned>::Owned> + ToOwned + 'static, 
[src]

type SubFragment = F

The smaller Fragment the driver cuts F into. Read more

Auto Trait Implementations

impl<F> RefUnwindSafe for OnceDriver<F> where
    <F as ToOwned>::Owned: RefUnwindSafe

impl<F> Send for OnceDriver<F> where
    <F as ToOwned>::Owned: Send

impl<F> Sync for OnceDriver<F> where
    <F as ToOwned>::Owned: Sync

impl<F> Unpin for OnceDriver<F> where
    <F as ToOwned>::Owned: Unpin

impl<F> UnwindSafe for OnceDriver<F> where
    <F as ToOwned>::Owned: 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<T> IntoResult<T> for T[src]

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.