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 Freeze for MemTypeLayout
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more