[][src]Struct scones_examples::TemplatedBuilder

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

A builder which creates an instance of Templated.

Use TemplatedBuilder::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 = TemplatedBuilder::new()
    .data(value).build();

Implementations

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

pub fn new() -> Self[src]

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

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

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

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

Auto Trait Implementations

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

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

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

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

impl<T, DataStatus__> UnwindSafe for TemplatedBuilder<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.