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
sourceimpl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more