pub struct OwnedLibraryVar<T: ?Sized> { /* private fields */ }
Implementations§
Source§impl<F> OwnedLibraryVar<F>
impl<F> OwnedLibraryVar<F>
Sourcepub unsafe fn assert_unique(self) -> AssertUnique<Self>
pub unsafe fn assert_unique(self) -> AssertUnique<Self>
Asserts that this is the only pointer to its symbol, and that this symbol points to the correct type.
Asserts that there are no unique pointers to this symbol, and that this symbol points to the correct type.
Trait Implementations§
Source§impl<T: ?Sized> AsPtr for OwnedLibraryVar<T>
impl<T: ?Sized> AsPtr for OwnedLibraryVar<T>
Source§impl<T: Clone + ?Sized> Clone for OwnedLibraryVar<T>
impl<T: Clone + ?Sized> Clone for OwnedLibraryVar<T>
Source§fn clone(&self) -> OwnedLibraryVar<T>
fn clone(&self) -> OwnedLibraryVar<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: ?Sized> Leak for OwnedLibraryVar<T>
impl<T: ?Sized> Leak for OwnedLibraryVar<T>
impl<T: ?Sized, U: ?Sized + Unsize<T>> CoerceUnsized<OwnedLibraryVar<T>> for OwnedLibraryVar<U>
Auto Trait Implementations§
impl<T> Freeze for OwnedLibraryVar<T>where
T: ?Sized,
impl<T> RefUnwindSafe for OwnedLibraryVar<T>where
T: RefUnwindSafe + ?Sized,
impl<T> !Send for OwnedLibraryVar<T>
impl<T> !Sync for OwnedLibraryVar<T>
impl<T> Unpin for OwnedLibraryVar<T>where
T: ?Sized,
impl<T> UnwindSafe for OwnedLibraryVar<T>where
T: RefUnwindSafe + ?Sized,
Blanket Implementations§
Source§impl<T> AssertSendSyncExt for T
impl<T> AssertSendSyncExt for T
Source§unsafe fn assert_send_sync(self) -> AssertSendSync<Self>
unsafe fn assert_send_sync(self) -> AssertSendSync<Self>
Asserts that this variable/function can be concurrently accessed from
different threads, and sent between threads.
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