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

pub struct CacheEq<Fragment: ToOwned> { /* fields omitted */ }

A Driver that caches the Resource if the Fragment doesn't change at all.

Most of the time, the configuration is the same or almost the same ‒ so many Resources don't need to be changed. This driver keeps the old instance of the Fragment and if the new one compares equal, it does nothing (eg. keeps the old instance of the Resource).

Trait Implementations

impl<F> Driver<F> for CacheEq<F> where
    F: Debug + Fragment + ToOwned + PartialEq<<F as ToOwned>::Owned>, 
[src]

type SubFragment = F

The smaller Fragment the driver cuts F into. Read more

impl<F: ToOwned> Default for CacheEq<F>[src]

impl<Fragment: Debug + ToOwned> Debug for CacheEq<Fragment> where
    Fragment::Owned: Debug,
    Fragment::Owned: Debug
[src]

Auto Trait Implementations

impl<Fragment> Send for CacheEq<Fragment> where
    <Fragment as ToOwned>::Owned: Send

impl<Fragment> Sync for CacheEq<Fragment> where
    <Fragment as ToOwned>::Owned: Sync

Blanket Implementations

impl<T> IntoResult for T[src]

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Erased for T