pub struct LayoutHints {
pub alignment: Option<usize>,
pub contiguous: bool,
pub layout: Option<DataLayout>,
pub locality: LocalityHint,
}Expand description
Memory layout optimization hints
Fields§
§alignment: Option<usize>Preferred memory alignment
contiguous: boolWhether data is contiguous
layout: Option<DataLayout>Preferred data layout (e.g., row-major, column-major)
locality: LocalityHintCache locality hints
Trait Implementations§
Source§impl Clone for LayoutHints
impl Clone for LayoutHints
Source§fn clone(&self) -> LayoutHints
fn clone(&self) -> LayoutHints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayoutHints
impl Debug for LayoutHints
Source§impl Default for LayoutHints
impl Default for LayoutHints
Source§fn default() -> LayoutHints
fn default() -> LayoutHints
Returns the “default value” for a type. Read more
impl Eq for LayoutHints
Source§impl Hash for LayoutHints
impl Hash for LayoutHints
Source§impl PartialEq for LayoutHints
impl PartialEq for LayoutHints
impl StructuralPartialEq for LayoutHints
Auto Trait Implementations§
impl Freeze for LayoutHints
impl RefUnwindSafe for LayoutHints
impl Send for LayoutHints
impl Sync for LayoutHints
impl Unpin for LayoutHints
impl UnsafeUnpin for LayoutHints
impl UnwindSafe for LayoutHints
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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