pub struct Builder<'a> { /* private fields */ }
Expand description
A structure used to create a Stadium
. This function can be created using
the stadium::builder
function.
Implementations§
Source§impl<'a> Builder<'a>
impl<'a> Builder<'a>
Sourcepub fn insert_raw(&mut self, meta: ObjectMeta) -> RawHandle
pub fn insert_raw(&mut self, meta: ObjectMeta) -> RawHandle
Prepares the insertion of a MaybeUninit<T>
into the Stadium
where
T
is the type described by the given ObjectMeta
structure.
Sourcepub fn insert_uninit<T>(&mut self) -> Handle<MaybeUninit<T>>
pub fn insert_uninit<T>(&mut self) -> Handle<MaybeUninit<T>>
Prepares the insertion of a MaybeUninit<T>
into the Stadium
.
Sourcepub unsafe fn insert_zeroed_raw(&mut self, meta: ObjectMeta) -> RawHandle
pub unsafe fn insert_zeroed_raw(&mut self, meta: ObjectMeta) -> RawHandle
Prepares the insertion of a T
into the Stadium
where T
is the type
described by the given ObjectMeta
structure.
§Safety
T
must be safely created using mem::zeroed()
.
Sourcepub unsafe fn insert_zeroed<T>(&mut self) -> Handle<T>
pub unsafe fn insert_zeroed<T>(&mut self) -> Handle<T>
Sourcepub fn insert_default<T: Default>(&mut self) -> Handle<T>
pub fn insert_default<T: Default>(&mut self) -> Handle<T>
Prepares the insertion of a T
into the Stadium
.
The T
will be automatically initialized to its default value.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Builder<'a>
impl<'a> RefUnwindSafe for Builder<'a>
impl<'a> !Send for Builder<'a>
impl<'a> !Sync for Builder<'a>
impl<'a> Unpin for Builder<'a>
impl<'a> UnwindSafe for Builder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more