pub struct RcUninit<T> { /* private fields */ }Implementations§
Source§impl<T> RcUninit<T>
impl<T> RcUninit<T>
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new RcUninit.
§Panics
Panics if check_sanity has not been called at least once.
§Examples
use rcuninit::RcUninit;
unsafe {
rcuninit::check_sanity();
}
RcUninit::<i32>::new();Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RcUninit<T>
impl<T> !RefUnwindSafe for RcUninit<T>
impl<T> !Send for RcUninit<T>
impl<T> !Sync for RcUninit<T>
impl<T> Unpin for RcUninit<T>
impl<T> !UnwindSafe for RcUninit<T>
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