[][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<Fragment: Debug + ToOwned> Debug for CacheEq<Fragment> where
    Fragment::Owned: Debug,
    Fragment::Owned: Debug
[src]

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

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

Auto Trait Implementations

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

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

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

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

impl<Fragment> UnwindSafe for CacheEq<Fragment> where
    <Fragment 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.