This commit is contained in:
Intege-rs
2025-03-13 16:04:20 -04:00
parent bb2fd32d27
commit 6489232e10

View File

@@ -3,7 +3,7 @@ pub struct Align<const ALIGNMENT: usize>( <Self as Aligned>::Alignment ) where S
pub trait Aligned { type Alignment; }
impl <const ALIGNMENT: usize> Align<ALIGNMENT> where Self: Aligned {
const fn new() -> Self { unsafe { core::mem::zeroed() } }
pub const fn new() -> Self { unsafe { core::mem::zeroed() } }
}
unsafe impl <const ALIGNMENT: usize> crate::data::Zeroed for Align<ALIGNMENT> where Self: Aligned {}