pub struct Module<'a, O> { /* private fields */ }
Expand description
A module handle.
Implementations§
Source§impl<'a, O> Module<'a, O>where
O: AccessIdentifier,
impl<'a, O> Module<'a, O>where
O: AccessIdentifier,
Sourcepub const unsafe fn new(handle: ModuleHandle) -> Self
pub const unsafe fn new(handle: ModuleHandle) -> 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) -> ModuleHandle
pub const fn as_handle(&self) -> ModuleHandle
Fetches the internal handle.
Source§impl<'a> Module<'a, Owned>
impl<'a> Module<'a, Owned>
Sourcepub const fn as_borrowed(&self) -> Module<'a, BorrowImmutable<'_>>
pub const fn as_borrowed(&self) -> Module<'a, BorrowImmutable<'_>>
Borrows the library handle.
Sourcepub fn as_borrowed_mut(&mut self) -> Module<'a, BorrowMutable<'_>>
pub fn as_borrowed_mut(&mut self) -> Module<'a, BorrowMutable<'_>>
Borrows the library handle mutably.
Trait Implementations§
Source§impl<'a, O: Ord> Ord for Module<'a, O>
impl<'a, O: Ord> Ord for Module<'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 Module<'a, O>
impl<'a, O: PartialOrd> PartialOrd for Module<'a, O>
impl<'a, O: Copy> Copy for Module<'a, O>
impl<'a, O: Eq> Eq for Module<'a, O>
impl<'a, O> StructuralPartialEq for Module<'a, O>
Auto Trait Implementations§
impl<'a, O> Freeze for Module<'a, O>
impl<'a, O> RefUnwindSafe for Module<'a, O>where
O: RefUnwindSafe,
impl<'a, O> !Send for Module<'a, O>
impl<'a, O> !Sync for Module<'a, O>
impl<'a, O> Unpin for Module<'a, O>
impl<'a, O> UnwindSafe for Module<'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