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