Struct spirt::qptr::layout::MemTypeLayout
source · pub(super) struct MemTypeLayout {
pub(super) original_type: Type,
pub(super) mem_layout: MaybeDynMemLayout,
pub(super) components: Components,
}
Fields§
§original_type: Type
§mem_layout: MaybeDynMemLayout
§components: Components
Implementations§
source§impl MemTypeLayout
impl MemTypeLayout
sourcefn supports_usage_at_offset(
&self,
usage_offset: u32,
usage: &QPtrMemUsage
) -> bool
fn supports_usage_at_offset( &self, usage_offset: u32, usage: &QPtrMemUsage ) -> bool
Determine if this layout is compatible with usage
at usage_offset
.
That is, all typed leaves of usage
must be found inside self
, at
their respective offsets, and all QPtrMemUsageKind::DynOffsetBase
s
must find a same-stride array inside self
(to allow dynamic indexing).
Auto Trait Implementations§
impl RefUnwindSafe for MemTypeLayout
impl !Send for MemTypeLayout
impl !Sync for MemTypeLayout
impl Unpin for MemTypeLayout
impl UnwindSafe for MemTypeLayout
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