[−][src]Struct stadium::Builder
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 it fails to allocate a box for init
.
pub fn insert_raw(&mut self, meta: ObjectMeta) -> RawHandle
[src]
Prepares the insertion of a MaybeUninit<T>
into the Stadium
where
T
is the type described by the given ObjectMeta
structure.
Panics
This function panics if it fails to allocate a box for a MaybeUninit<T>
.
pub fn build(self) -> Stadium
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
[src]
impl !Send for Builder
[src]
impl !Sync for Builder
[src]
impl Unpin for Builder
[src]
impl UnwindSafe for Builder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,