pub struct AlignmentKeyId { /* private fields */ }Expand description
Stable identifier for a built-in alignment guide in the layout runtime.
Implementations§
Source§impl AlignmentKeyId
impl AlignmentKeyId
Sourcepub const fn new(low: u64, high: u64) -> AlignmentKeyId
pub const fn new(low: u64, high: u64) -> AlignmentKeyId
Creates a stable alignment identifier from its low/high 64-bit halves.
Sourcepub const fn from_name(name: &str) -> AlignmentKeyId
pub const fn from_name(name: &str) -> AlignmentKeyId
Creates an identifier from a stable string name using FNV-1a 128-bit hashing.
Trait Implementations§
Source§impl Clone for AlignmentKeyId
impl Clone for AlignmentKeyId
Source§fn clone(&self) -> AlignmentKeyId
fn clone(&self) -> AlignmentKeyId
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 moreimpl Copy for AlignmentKeyId
Source§impl Debug for AlignmentKeyId
impl Debug for AlignmentKeyId
impl Eq for AlignmentKeyId
Source§impl Hash for AlignmentKeyId
impl Hash for AlignmentKeyId
Source§impl PartialEq for AlignmentKeyId
impl PartialEq for AlignmentKeyId
impl StructuralPartialEq for AlignmentKeyId
Auto Trait Implementations§
impl Freeze for AlignmentKeyId
impl RefUnwindSafe for AlignmentKeyId
impl Send for AlignmentKeyId
impl Sync for AlignmentKeyId
impl Unpin for AlignmentKeyId
impl UnsafeUnpin for AlignmentKeyId
impl UnwindSafe for AlignmentKeyId
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