Trait sharedptr::unsafe_def::IGetMutUnchecked
source · [−]pub unsafe trait IGetMutUnchecked<T: ?Sized> {
unsafe fn get_mut_unchecked(&self) -> &mut T;
}
Expand description
Safety
Rc::get_mut Too strict, resulting in limited function, we need an unsafe way to be consistent with the SharedPtr
Required methods
unsafe fn get_mut_unchecked(&self) -> &mut T
unsafe fn get_mut_unchecked(&self) -> &mut T
Safety
no check unique,return &mut T panic!! ptr is none