[][src]Struct scones_examples::TemplatedTryBuilder

pub struct TemplatedTryBuilder<T, DataStatus__> where
    T: Sized
{ /* fields omitted */ }

A builder which creates an instance of Templated.

Use TemplatedTryBuilder::new() to start the builder. Calling build() consumes the builder, returning the completed item. Before calling build(), you can modify values the builder will use by calling any of the other functions. For this builder, you must call all of the following functions at least once before calling build(), or you will receive a compilation error:

  • data(value: T)

Here is a minimal example:

let instance = TemplatedTryBuilder::new()
    .data(value).build();

Implementations

impl<T> TemplatedTryBuilder<T, Missing> where
    T: Sized
[src]

pub fn new() -> Self[src]

impl<T, DataStatus__> TemplatedTryBuilder<T, DataStatus__> where
    T: Sized
[src]

pub fn data(self, value: T) -> TemplatedTryBuilder<T, Present>[src]

impl<T> TemplatedTryBuilder<T, Present> where
    T: Sized
[src]

pub fn build(self) -> Result<Templated<T>, i32>[src]

Auto Trait Implementations

impl<T, DataStatus__> RefUnwindSafe for TemplatedTryBuilder<T, DataStatus__> where
    DataStatus__: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, DataStatus__> Send for TemplatedTryBuilder<T, DataStatus__> where
    DataStatus__: Send,
    T: Send

impl<T, DataStatus__> Sync for TemplatedTryBuilder<T, DataStatus__> where
    DataStatus__: Sync,
    T: Sync

impl<T, DataStatus__> Unpin for TemplatedTryBuilder<T, DataStatus__> where
    DataStatus__: Unpin,
    T: Unpin

impl<T, DataStatus__> UnwindSafe for TemplatedTryBuilder<T, DataStatus__> where
    DataStatus__: UnwindSafe,
    T: 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, 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.