pub struct Library<'g> { /* private fields */ }Expand description
Handle of a loaded library, bound to the Scope<'g> it was loaded through —
same model as AllocatedMemory<'g>.
Library<'g> cannot outlive the scope that created it: there is no way to
construct one except via Scope::load,
which requires a live Scope<'g> in the first place. This replaces the old
__Library<const Allowed: bool> gate — the lifetime is the gate now.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'g> Freeze for Library<'g>
impl<'g> RefUnwindSafe for Library<'g>
impl<'g> Send for Library<'g>
impl<'g> Sync for Library<'g>
impl<'g> Unpin for Library<'g>
impl<'g> UnsafeUnpin for Library<'g>
impl<'g> UnwindSafe for Library<'g>
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