pub struct RcK { /* private fields */ }Expand description
Type constructors for
Rc pointers.
Trait Implementations
pub fn new<T>(v: T) -> RcK
pub fn from_box<T>(v: Box<T, Global>) -> RcK
pub unsafe fn as_ptr<T>(&self) -> *const T
pub unsafe fn deref<T>(&self) -> &T
pub unsafe fn try_unwrap<T>(self) -> Result<T, RcK>
pub unsafe fn get_mut<T>(&mut self) -> Option<&mut T>
pub unsafe fn make_mut<T>(&mut self) -> &mut T where
T: Clone,
pub unsafe fn strong_count<T>(&self) -> usize
pub unsafe fn clone<T>(&self) -> RcK
pub unsafe fn drop<T>(&mut self)
Auto Trait Implementations
impl RefUnwindSafe for RcK
impl !Send for RcK
impl !Sync for RcK
impl Unpin for RcK
impl UnwindSafe for RcK
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more