pub struct MaybeAlign(/* private fields */);
Expand description
Represents a potentially unknown (unspecified) alignment.
Trait Implementations§
Source§impl Clone for MaybeAlign
impl Clone for MaybeAlign
Source§fn clone(&self) -> MaybeAlign
fn clone(&self) -> MaybeAlign
Returns a duplicate of the value. Read more
1.0.0 · 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 MaybeAlign
impl Debug for MaybeAlign
Source§impl PartialEq for MaybeAlign
impl PartialEq for MaybeAlign
Source§impl TryFrom<u8> for MaybeAlign
impl TryFrom<u8> for MaybeAlign
Source§type Error = AlignError
type Error = AlignError
The type returned in the event of a conversion error.
Source§fn try_from(value: u8) -> Result<MaybeAlign, AlignError>
fn try_from(value: u8) -> Result<MaybeAlign, AlignError>
Performs the conversion.
impl Copy for MaybeAlign
impl StructuralPartialEq for MaybeAlign
Auto Trait Implementations§
impl Freeze for MaybeAlign
impl RefUnwindSafe for MaybeAlign
impl Send for MaybeAlign
impl Sync for MaybeAlign
impl Unpin for MaybeAlign
impl UnwindSafe for MaybeAlign
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