pub struct Object { /* private fields */ }Expand description
An owned reference to a managed object.
Implementations§
Source§impl Object
impl Object
Sourcepub unsafe fn from_handle(
handle: isize,
runtime: Runtime,
assembly: &'static BoundAssembly,
) -> Self
pub unsafe fn from_handle( handle: isize, runtime: Runtime, assembly: &'static BoundAssembly, ) -> Self
Takes ownership of a GCHandle returned by a thunk.
§Safety
handle must be a live GCHandle that nothing else will free.
pub fn handle(&self) -> isize
pub fn runtime(&self) -> &Runtime
pub fn assembly(&self) -> &'static BoundAssembly
Sourcepub fn to_managed_string(&self) -> Result<String>
pub fn to_managed_string(&self) -> Result<String>
The object’s ToString().
Trait Implementations§
Auto Trait Implementations§
impl Forget for Object
impl Freeze for Object
impl Move for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnsafeUnpin for Object
impl UnwindSafe for Object
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