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