[−][src]Struct spirit::fragment::driver::RefDriver
An adaptor Driver
for references.
This is used behind the scenes to wrap a driver for F
to create a driver for &F
.
Implementations
impl<Inner> RefDriver<Inner>
[src]
pub fn new(inner: Inner) -> Self
[src]
Creates the driver.
It is available to support also drivers that are provided and created by the user. Usually,
the Default
implementation is used within the Fragment
.
Trait Implementations
impl<Inner: Debug> Debug for RefDriver<Inner>
[src]
impl<Inner: Default> Default for RefDriver<Inner>
[src]
impl<'a, F: Fragment, Inner: Driver<F>> Driver<&'a F> for RefDriver<Inner>
[src]
type SubFragment = Inner::SubFragment
fn instructions<T, I>(
&mut self,
fragment: &&F,
transform: &mut T,
name: &'static str
) -> Result<Vec<Instruction<T::OutputResource>>, Vec<AnyError>> where
T: Transformation<<Self::SubFragment as Fragment>::Resource, I, Self::SubFragment>,
[src]
&mut self,
fragment: &&F,
transform: &mut T,
name: &'static str
) -> Result<Vec<Instruction<T::OutputResource>>, Vec<AnyError>> where
T: Transformation<<Self::SubFragment as Fragment>::Resource, I, Self::SubFragment>,
fn confirm(&mut self, name: &'static str)
[src]
fn abort(&mut self, name: &'static str)
[src]
fn maybe_cached(&self, fragment: &&F, name: &'static str) -> bool
[src]
Auto Trait Implementations
impl<Inner> RefUnwindSafe for RefDriver<Inner> where
Inner: RefUnwindSafe,
Inner: RefUnwindSafe,
impl<Inner> Send for RefDriver<Inner> where
Inner: Send,
Inner: Send,
impl<Inner> Sync for RefDriver<Inner> where
Inner: Sync,
Inner: Sync,
impl<Inner> Unpin for RefDriver<Inner> where
Inner: Unpin,
Inner: Unpin,
impl<Inner> UnwindSafe for RefDriver<Inner> where
Inner: UnwindSafe,
Inner: 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,
fn borrow_mut(&mut self) -> &mut 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> IntoResult<T> for 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.
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>,