pub struct Library<'a, O> { /* private fields */ }
Expand description
A library handle.
Implementations§
Source§impl<'a, O> Library<'a, O>where
O: AccessIdentifier,
impl<'a, O> Library<'a, O>where
O: AccessIdentifier,
Sourcepub const unsafe fn new(handle: LibraryHandle) -> Self
pub const unsafe fn new(handle: LibraryHandle) -> Self
Construct a new instance from a handle.
§Safety
This function allows the creation of invalid handles by bypassing lifetimes.
Sourcepub const fn as_handle(&self) -> LibraryHandle
pub const fn as_handle(&self) -> LibraryHandle
Fetches the internal handle.
Source§impl<'a> Library<'a, Owned>
impl<'a> Library<'a, Owned>
Sourcepub const fn as_borrowed(&self) -> Library<'a, BorrowImmutable<'_>>
pub const fn as_borrowed(&self) -> Library<'a, BorrowImmutable<'_>>
Borrows the library handle.
Sourcepub fn as_borrowed_mut(&mut self) -> Library<'a, BorrowMutable<'_>>
pub fn as_borrowed_mut(&mut self) -> Library<'a, BorrowMutable<'_>>
Borrows the library handle mutably.
Trait Implementations§
Source§impl<'a, O: Ord> Ord for Library<'a, O>
impl<'a, O: Ord> Ord for Library<'a, O>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a, O: PartialOrd> PartialOrd for Library<'a, O>
impl<'a, O: PartialOrd> PartialOrd for Library<'a, O>
impl<'a, O: Copy> Copy for Library<'a, O>
impl<'a, O: Eq> Eq for Library<'a, O>
impl<'a, O> StructuralPartialEq for Library<'a, O>
Auto Trait Implementations§
impl<'a, O> Freeze for Library<'a, O>
impl<'a, O> RefUnwindSafe for Library<'a, O>where
O: RefUnwindSafe,
impl<'a, O> !Send for Library<'a, O>
impl<'a, O> !Sync for Library<'a, O>
impl<'a, O> Unpin for Library<'a, O>
impl<'a, O> UnwindSafe for Library<'a, O>where
O: RefUnwindSafe,
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