Struct spirit::fragment::driver::RefDriver [−][src]
pub struct RefDriver<Inner>(_);
Expand description
An adaptor Driver
for references.
This is used behind the scenes to wrap a driver for F
to create a driver for &F
.
Implementations
Trait Implementations
type SubFragment = Inner::SubFragment
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>,
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>,
Issues the instructions how to transition to the new fragment. Read more
Call to this method informs the Driver
that the instructions returned by the last call
to instructions
were followed and the changes have taken place. Read more
Call to this method informs the Driver
that the instructions returned by the last call
to instructions
were not followed and were dropped. Read more