Struct ra_ap_rustc_abi::AbiAndPrefAlign
source · pub struct AbiAndPrefAlign {
pub abi: Align,
pub pref: Align,
}
Expand description
A pair of alignments, ABI-mandated and preferred.
Fields§
§abi: Align
§pref: Align
Implementations§
source§impl AbiAndPrefAlign
impl AbiAndPrefAlign
pub fn new(align: Align) -> AbiAndPrefAlign
pub fn min(self, other: AbiAndPrefAlign) -> AbiAndPrefAlign
pub fn max(self, other: AbiAndPrefAlign) -> AbiAndPrefAlign
Trait Implementations§
source§impl Clone for AbiAndPrefAlign
impl Clone for AbiAndPrefAlign
source§fn clone(&self) -> AbiAndPrefAlign
fn clone(&self) -> AbiAndPrefAlign
Returns a copy 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 AbiAndPrefAlign
impl Debug for AbiAndPrefAlign
source§impl Hash for AbiAndPrefAlign
impl Hash for AbiAndPrefAlign
source§impl PartialEq for AbiAndPrefAlign
impl PartialEq for AbiAndPrefAlign
source§fn eq(&self, other: &AbiAndPrefAlign) -> bool
fn eq(&self, other: &AbiAndPrefAlign) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AbiAndPrefAlign
impl Eq for AbiAndPrefAlign
impl StructuralPartialEq for AbiAndPrefAlign
Auto Trait Implementations§
impl Freeze for AbiAndPrefAlign
impl RefUnwindSafe for AbiAndPrefAlign
impl Send for AbiAndPrefAlign
impl Sync for AbiAndPrefAlign
impl Unpin for AbiAndPrefAlign
impl UnwindSafe for AbiAndPrefAlign
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