#[repr(transparent)]pub(crate) struct MutObjCell(ObjCell);
Expand description
This represents a mutable view into an Object. See ObjCell
for a more
detailed explanation. Holding this type means that we confirmed that the
data stucture is mutable, and we can use the MutObjCell::set
method update this
cell.
Tuple Fields§
§0: ObjCell
Implementations§
Source§impl MutObjCell
impl MutObjCell
pub(crate) fn set(&self, value: Gc<ObjectType<'_>>)
Methods from Deref<Target = ObjCell>§
pub(crate) fn get(&self) -> Gc<ObjectType<'_>>
Sourcepub(in core) unsafe fn as_mut(
&self,
) -> &MutObjCell
pub(in core) unsafe fn as_mut( &self, ) -> &MutObjCell
Casts to a MutObjCell
. Caller must ensure that the data structure is
mutable.
Trait Implementations§
Source§impl PartialEq for MutObjCell
impl PartialEq for MutObjCell
Source§impl Deref for MutObjCell
impl Deref for MutObjCell
impl StructuralPartialEq for MutObjCell
Auto Trait Implementations§
impl !Freeze for MutObjCell
impl !RefUnwindSafe for MutObjCell
impl Send for MutObjCell
impl !Sync for MutObjCell
impl Unpin for MutObjCell
impl !UnwindSafe for MutObjCell
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