pub struct NightlyUtils(/* private fields */);Implementations§
Source§impl NightlyUtils
impl NightlyUtils
pub fn box_new_uninit_slice<T>(size: usize) -> Box<[MaybeUninit<T>]>
pub unsafe fn box_assume_init<T>(box_: Box<[MaybeUninit<T>]>) -> Box<[T]>
pub fn box_new_zeroed_slice<T>(size: usize) -> Box<[MaybeUninit<T>]>
pub unsafe fn box_new_uninit_slice_assume_init<T: Copy>(size: usize) -> Box<[T]>
pub unsafe fn box_new_zeroed_slice_assume_init<T: Copy>(size: usize) -> Box<[T]>
pub fn mutex_get_or_init<'a, T>( m: &'a mut MutexGuard<'_, Option<T>>, init_fn: fn() -> T, ) -> &'a mut T
pub const fn new_mutex<T>(val: T) -> Mutex<T>
Auto Trait Implementations§
impl Freeze for NightlyUtils
impl RefUnwindSafe for NightlyUtils
impl Send for NightlyUtils
impl Sync for NightlyUtils
impl Unpin for NightlyUtils
impl UnwindSafe for NightlyUtils
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