Struct microkelvin::Ident
source · [−]pub struct Ident<T, I> { /* private fields */ }
Expand description
An identifier representing a value stored somewhere else
Implementations
Trait Implementations
sourceimpl<__C: ?Sized, T, I> CheckBytes<__C> for Ident<T, I> where
I: CheckBytes<__C>,
PhantomData<T>: CheckBytes<__C>,
impl<__C: ?Sized, T, I> CheckBytes<__C> for Ident<T, I> where
I: CheckBytes<__C>,
PhantomData<T>: CheckBytes<__C>,
type Error = StructCheckError
type Error = StructCheckError
The error that may result from checking the type.
sourceunsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, Self::Error>
unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, Self::Error>
Checks whether the given pointer points to a valid value within the given context. Read more
impl<T, I> Copy for Ident<T, I> where
I: Copy,
Auto Trait Implementations
impl<T, I> RefUnwindSafe for Ident<T, I> where
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I> Send for Ident<T, I> where
I: Send,
T: Send,
impl<T, I> Sync for Ident<T, I> where
I: Sync,
T: Sync,
impl<T, I> Unpin for Ident<T, I> where
I: Unpin,
T: Unpin,
impl<T, I> UnwindSafe for Ident<T, I> where
I: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more