pub struct Obj(/* private fields */);Expand description
A Lean value that is not an unboxed scalar.
Trait Implementations§
impl Copy for Obj
impl Eq for Obj
Source§impl Repr for Obj
impl Repr for Obj
Source§fn into_object(self) -> Obj
fn into_object(self) -> Obj
The value as an object: the form it has as an element of an array, an argument of a
closure or a field of a polymorphic type. The object takes over the reference.
Source§unsafe fn take(object: Obj) -> Obj
unsafe fn take(object: Obj) -> Obj
The value out of an object that
Repr::into_object made, whose reference is given
up. Read moreThe value out of an object that stays with its owner: one more reference to an
object, a copy of a scalar. Read more
impl StructuralPartialEq for Obj
Auto Trait Implementations§
impl !RefUnwindSafe for Obj
impl !Send for Obj
impl !Sync for Obj
impl !UnwindSafe for Obj
impl Forget for Obj
impl Freeze for Obj
impl Move for Obj
impl Unpin for Obj
impl UnsafeUnpin for Obj
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