Skip to main content

GenerateBuilder

Struct GenerateBuilder 

Source
pub struct GenerateBuilder<I1, I2, S: State = Empty>
where I1: AsRef<Path>, I2: AsRef<Path>,
{ /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with call().

Implementations§

Source§

impl<I1, I2, S: State> GenerateBuilder<I1, I2, S>
where I1: AsRef<Path>, I2: AsRef<Path>,

Source

pub fn call(self) -> Result<()>
where S: IsComplete,

Finishes building and performs the requested action.

Source

pub fn input(self, value: I1) -> GenerateBuilder<I1, I2, SetInput<S>>
where S::Input: IsUnset,

Required.

Source

pub fn output(self, value: I2) -> GenerateBuilder<I1, I2, SetOutput<S>>
where S::Output: IsUnset,

Required.

Auto Trait Implementations§

§

impl<I1, I2, S> Freeze for GenerateBuilder<I1, I2, S>
where I1: Freeze, I2: Freeze,

§

impl<I1, I2, S> RefUnwindSafe for GenerateBuilder<I1, I2, S>

§

impl<I1, I2, S> Send for GenerateBuilder<I1, I2, S>
where I1: Send, I2: Send,

§

impl<I1, I2, S> Sync for GenerateBuilder<I1, I2, S>
where I1: Sync, I2: Sync,

§

impl<I1, I2, S> Unpin for GenerateBuilder<I1, I2, S>
where I1: Unpin, I2: Unpin,

§

impl<I1, I2, S> UnsafeUnpin for GenerateBuilder<I1, I2, S>
where I1: UnsafeUnpin, I2: UnsafeUnpin,

§

impl<I1, I2, S> UnwindSafe for GenerateBuilder<I1, I2, S>
where I1: UnwindSafe, I2: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.