Struct spirt::qptr::shapes::MaybeDynMemLayout
source · pub struct MaybeDynMemLayout {
pub fixed_base: MemLayout,
pub dyn_unit_stride: Option<NonZeroU32>,
}
Expand description
Untyped memory shape with constant alignment but potentially-dynamic size,
roughly corresponding to a Rust (FixedBase, [DynUnit])
type’s layout.
Fields§
§fixed_base: MemLayout
§dyn_unit_stride: Option<NonZeroU32>
Trait Implementations§
source§impl Clone for MaybeDynMemLayout
impl Clone for MaybeDynMemLayout
source§fn clone(&self) -> MaybeDynMemLayout
fn clone(&self) -> MaybeDynMemLayout
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MaybeDynMemLayout
impl Debug for MaybeDynMemLayout
source§impl PartialEq<MaybeDynMemLayout> for MaybeDynMemLayout
impl PartialEq<MaybeDynMemLayout> for MaybeDynMemLayout
source§fn eq(&self, other: &MaybeDynMemLayout) -> bool
fn eq(&self, other: &MaybeDynMemLayout) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MaybeDynMemLayout
impl Eq for MaybeDynMemLayout
impl StructuralEq for MaybeDynMemLayout
impl StructuralPartialEq for MaybeDynMemLayout
Auto Trait Implementations§
impl RefUnwindSafe for MaybeDynMemLayout
impl Send for MaybeDynMemLayout
impl Sync for MaybeDynMemLayout
impl Unpin for MaybeDynMemLayout
impl UnwindSafe for MaybeDynMemLayout
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.