pub struct ArrayInitializer<T>where
T: Sized,{ /* private fields */ }
Expand description
A helper to safely initialize items of UninitArray
.
Implementations§
Source§impl<T> ArrayInitializer<T>where
T: Sized,
impl<T> ArrayInitializer<T>where
T: Sized,
Sourcepub fn initialized(self) -> Option<FixedArray<T>>
pub fn initialized(self) -> Option<FixedArray<T>>
Calling this function finalizes the array initialization. The number of items added over
this initializer should be lower or equal UninitArray
length.
Auto Trait Implementations§
impl<T> Freeze for ArrayInitializer<T>
impl<T> RefUnwindSafe for ArrayInitializer<T>where
T: RefUnwindSafe,
impl<T> !Send for ArrayInitializer<T>
impl<T> !Sync for ArrayInitializer<T>
impl<T> Unpin for ArrayInitializer<T>
impl<T> UnwindSafe for ArrayInitializer<T>where
T: RefUnwindSafe,
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