Struct erg_common::rccell::RcCell
source · [−]pub struct RcCell<T: ?Sized>(_);
Implementations
sourceimpl<T: ?Sized> RcCell<T>
impl<T: ?Sized> RcCell<T>
pub fn copy(&self) -> Self
pub fn borrow(&self) -> Ref<'_, T>
pub fn borrow_mut(&self) -> RefMut<'_, T>
pub fn as_ptr(&self) -> *mut T
pub fn try_borrow_mut(&self) -> Result<RefMut<'_, T>, BorrowMutError>
pub fn can_borrow(&self) -> bool
pub fn can_borrow_mut(&self) -> bool
sourceimpl<T: Clone> RcCell<T>
impl<T: Clone> RcCell<T>
pub fn clone_inner(&self) -> T
Trait Implementations
sourceimpl<T: PartialEq> PartialEq<RcCell<T>> for RcCell<T>
impl<T: PartialEq> PartialEq<RcCell<T>> for RcCell<T>
impl<T: Eq> Eq for RcCell<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for RcCell<T>
impl<T> !Send for RcCell<T>
impl<T> !Sync for RcCell<T>
impl<T: ?Sized> Unpin for RcCell<T>
impl<T> !UnwindSafe for RcCell<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more