pub struct StateLayout {
pub size: usize,
pub align: usize,
}Expand description
Size and alignment for a reusable generator state.
Fields§
§size: usizeState size in bytes.
align: usizeState alignment in bytes.
Trait Implementations§
Source§impl Clone for StateLayout
impl Clone for StateLayout
Source§fn clone(&self) -> StateLayout
fn clone(&self) -> StateLayout
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 StateLayout
Source§impl Debug for StateLayout
impl Debug for StateLayout
impl Eq for StateLayout
Source§impl PartialEq for StateLayout
impl PartialEq for StateLayout
Source§fn eq(&self, other: &StateLayout) -> bool
fn eq(&self, other: &StateLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StateLayout
Auto Trait Implementations§
impl Freeze for StateLayout
impl RefUnwindSafe for StateLayout
impl Send for StateLayout
impl Sync for StateLayout
impl Unpin for StateLayout
impl UnsafeUnpin for StateLayout
impl UnwindSafe for StateLayout
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