[][src]Struct stadium::Builder

pub struct Builder { /* fields omitted */ }

A structure used to create a Stadium. This function can be created using the stadium::builder function.

Implementations

impl Builder[src]

pub fn new() -> Self[src]

Creates a new instance of Builder.

Example

let builder = stadium::Builder::new();
// That it! Now you have your own builder.

pub fn insert<T>(&mut self, init: T) -> Handle<T>[src]

Prepares the insertion of init into the Stadium.

Panics

This function panics if T is a zero-sized type.

pub fn insert_raw(&mut self, meta: ObjectMeta) -> RawHandle[src]

Prepares the insertion of a MayveUninit<T> into the Stadium where T is the type described by the given ObjectMeta structure.

Panics

This function panics if the object described by ObjectMeta is a a zero-sized type.

pub fn build(self) -> Stadium[src]

Builds a new Stadium.

Panics

This function can panics if one of the following events occure:

  • The builder is empty
  • The function fails to allocate for the stadium

Trait Implementations

impl From<Builder> for Stadium[src]

Auto Trait Implementations

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.