#[repr(C)]pub struct ArchivedDataInitializerLocation{
pub memory_index: Archived<MemoryIndex>,
pub base: Archived<Option<GlobalIndex>>,
pub offset: Archived<usize>,
}
Expand description
An archived DataInitializerLocation
Fields§
§memory_index: Archived<MemoryIndex>
The archived counterpart of DataInitializerLocation::memory_index
base: Archived<Option<GlobalIndex>>
The archived counterpart of DataInitializerLocation::base
offset: Archived<usize>
The archived counterpart of DataInitializerLocation::offset
Trait Implementations§
source§impl<__C: ?Sized> CheckBytes<__C> for ArchivedDataInitializerLocationwhere
MemoryIndex: Archive,
Option<GlobalIndex>: Archive,
usize: Archive,
Archived<MemoryIndex>: CheckBytes<__C>,
Archived<Option<GlobalIndex>>: CheckBytes<__C>,
Archived<usize>: CheckBytes<__C>,
impl<__C: ?Sized> CheckBytes<__C> for ArchivedDataInitializerLocationwhere
MemoryIndex: Archive,
Option<GlobalIndex>: Archive,
usize: Archive,
Archived<MemoryIndex>: CheckBytes<__C>,
Archived<Option<GlobalIndex>>: CheckBytes<__C>,
Archived<usize>: CheckBytes<__C>,
source§type Error = StructCheckError
type Error = StructCheckError
The error that may result from checking the type.
source§unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C,
) -> Result<&'__bytecheck Self, StructCheckError>
unsafe fn check_bytes<'__bytecheck>( value: *const Self, context: &mut __C, ) -> Result<&'__bytecheck Self, StructCheckError>
Checks whether the given pointer points to a valid value within the
given context. Read more
source§impl DataInitializerLocationLike for &ArchivedDataInitializerLocation
impl DataInitializerLocationLike for &ArchivedDataInitializerLocation
fn memory_index(&self) -> MemoryIndex
fn base(&self) -> Option<GlobalIndex>
fn offset(&self) -> usize
Auto Trait Implementations§
impl Freeze for ArchivedDataInitializerLocation
impl RefUnwindSafe for ArchivedDataInitializerLocation
impl Send for ArchivedDataInitializerLocation
impl Sync for ArchivedDataInitializerLocation
impl Unpin for ArchivedDataInitializerLocation
impl UnwindSafe for ArchivedDataInitializerLocation
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn 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.
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
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.