[−][src]Struct spirit::fragment::driver::CacheEq
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 Resource
s
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]
F: Debug + Fragment + ToOwned + PartialEq<<F as ToOwned>::Owned>,
type SubFragment = F
fn instructions<T, I>(
&mut self,
fragment: &F,
transform: &mut T,
name: &'static str
) -> Result<Vec<Instruction<T::OutputResource>>, Vec<Error>> where
T: Transformation<F::Resource, I, F>,
[src]
&mut self,
fragment: &F,
transform: &mut T,
name: &'static str
) -> Result<Vec<Instruction<T::OutputResource>>, Vec<Error>> where
T: Transformation<F::Resource, I, F>,
fn abort(&mut self, name: &'static str)
[src]
fn confirm(&mut self, name: &'static str)
[src]
fn maybe_cached(&self, fragment: &F, _name: &'static str) -> bool
[src]
impl<F: ToOwned> Default for CacheEq<F>
[src]
impl<Fragment: Debug + ToOwned> Debug for CacheEq<Fragment> where
Fragment::Owned: Debug,
Fragment::Owned: Debug,
[src]
Fragment::Owned: Debug,
Fragment::Owned: Debug,
Auto Trait Implementations
impl<Fragment> Send for CacheEq<Fragment> where
<Fragment as ToOwned>::Owned: Send,
<Fragment as ToOwned>::Owned: Send,
impl<Fragment> Sync for CacheEq<Fragment> where
<Fragment as ToOwned>::Owned: Sync,
<Fragment as ToOwned>::Owned: Sync,
Blanket Implementations
impl<T> IntoResult for T
[src]
fn into_result(Self) -> Result<T, Error>
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.