Struct objc2_ui_kit::NSLayoutAttribute
source · #[repr(transparent)]pub struct NSLayoutAttribute(pub NSInteger);
Available on crate feature
NSLayoutConstraint
only.Tuple Fields§
§0: NSInteger
Implementations§
source§impl NSLayoutAttribute
impl NSLayoutAttribute
pub const Left: Self = _
pub const Right: Self = _
pub const Top: Self = _
pub const Bottom: Self = _
pub const Leading: Self = _
pub const Trailing: Self = _
pub const Width: Self = _
pub const Height: Self = _
pub const CenterX: Self = _
pub const CenterY: Self = _
pub const LastBaseline: Self = _
pub const Baseline: Self = _
pub const FirstBaseline: Self = _
pub const LeftMargin: Self = _
pub const RightMargin: Self = _
pub const TopMargin: Self = _
pub const BottomMargin: Self = _
pub const LeadingMargin: Self = _
pub const TrailingMargin: Self = _
pub const CenterXWithinMargins: Self = _
pub const CenterYWithinMargins: Self = _
pub const NotAnAttribute: Self = _
Trait Implementations§
source§impl Clone for NSLayoutAttribute
impl Clone for NSLayoutAttribute
source§fn clone(&self) -> NSLayoutAttribute
fn clone(&self) -> NSLayoutAttribute
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 NSLayoutAttribute
impl Debug for NSLayoutAttribute
source§impl Encode for NSLayoutAttribute
impl Encode for NSLayoutAttribute
source§impl Hash for NSLayoutAttribute
impl Hash for NSLayoutAttribute
source§impl Ord for NSLayoutAttribute
impl Ord for NSLayoutAttribute
source§fn cmp(&self, other: &NSLayoutAttribute) -> Ordering
fn cmp(&self, other: &NSLayoutAttribute) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NSLayoutAttribute
impl PartialEq for NSLayoutAttribute
source§fn eq(&self, other: &NSLayoutAttribute) -> bool
fn eq(&self, other: &NSLayoutAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NSLayoutAttribute
impl PartialOrd for NSLayoutAttribute
source§fn partial_cmp(&self, other: &NSLayoutAttribute) -> Option<Ordering>
fn partial_cmp(&self, other: &NSLayoutAttribute) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl RefEncode for NSLayoutAttribute
impl RefEncode for NSLayoutAttribute
source§const ENCODING_REF: Encoding = _
const ENCODING_REF: Encoding = _
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for NSLayoutAttribute
impl Eq for NSLayoutAttribute
impl StructuralPartialEq for NSLayoutAttribute
Auto Trait Implementations§
impl Freeze for NSLayoutAttribute
impl RefUnwindSafe for NSLayoutAttribute
impl Send for NSLayoutAttribute
impl Sync for NSLayoutAttribute
impl Unpin for NSLayoutAttribute
impl UnwindSafe for NSLayoutAttribute
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
source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.