pub struct ExternRef(/* private fields */);Implementations§
Source§impl ExternRef
impl ExternRef
Sourcepub const fn new(addr: Option<ExternAddr>) -> Self
pub const fn new(addr: Option<ExternAddr>) -> Self
Create a new ExternRef from an ExternAddr.
Should only be used by the runtime.
Sourcepub const fn addr(&self) -> Option<ExternAddr>
pub const fn addr(&self) -> Option<ExternAddr>
Get the ExternAddr from the ExternRef.
Trait Implementations§
impl Copy for ExternRef
impl Eq for ExternRef
impl StructuralPartialEq for ExternRef
Auto Trait Implementations§
impl Freeze for ExternRef
impl RefUnwindSafe for ExternRef
impl Send for ExternRef
impl Sync for ExternRef
impl Unpin for ExternRef
impl UnsafeUnpin for ExternRef
impl UnwindSafe for ExternRef
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