pub struct RegionUnit {
pub size: usize,
pub align: usize,
}Expand description
The placement arithmetic and its data types live in nros-executor-layout
(issue 1197) so a HOST build script can evaluate them for a target it is not
compiling. Re-exported here because this is where every consumer already
looks, and because NATIVE — the only part that names the types — has to
live in the crate that owns them.
Size and alignment of one region’s element type.
Fields§
§size: usizesize_of::<T>().
align: usizealign_of::<T>(). Must be a power of two; zero is rejected as 1.
Trait Implementations§
Source§impl Clone for RegionUnit
impl Clone for RegionUnit
Source§fn clone(&self) -> RegionUnit
fn clone(&self) -> RegionUnit
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 RegionUnit
Source§impl Debug for RegionUnit
impl Debug for RegionUnit
impl Eq for RegionUnit
Source§impl PartialEq for RegionUnit
impl PartialEq for RegionUnit
impl StructuralPartialEq for RegionUnit
Auto Trait Implementations§
impl Freeze for RegionUnit
impl RefUnwindSafe for RegionUnit
impl Send for RegionUnit
impl Sync for RegionUnit
impl Unpin for RegionUnit
impl UnsafeUnpin for RegionUnit
impl UnwindSafe for RegionUnit
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