pub struct Ref<T: 'static> { /* private fields */ }Expand description
A reference to a value in a link section. This allows platforms like WASM to reference the value, even though the final location is not known until after initialization.
Implementations§
Trait Implementations§
Source§impl<T> SectionItemLocation<T> for &Ref<T>
impl<T> SectionItemLocation<T> for &Ref<T>
impl<T> Send for Ref<T>where
T: Send,
impl<T> Sync for Ref<T>where
T: Sync,
Auto Trait Implementations§
impl<T> Freeze for Ref<T>where
T: Freeze,
impl<T> RefUnwindSafe for Ref<T>where
T: RefUnwindSafe,
impl<T> Unpin for Ref<T>where
T: Unpin,
impl<T> UnsafeUnpin for Ref<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Ref<T>where
T: UnwindSafe,
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