Struct objc2_app_kit::NSButtonType
source · #[repr(transparent)]pub struct NSButtonType(pub NSUInteger);
Available on crate feature
NSButtonCell
only.Tuple Fields§
§0: NSUInteger
Implementations§
source§impl NSButtonType
impl NSButtonType
pub const MomentaryLight: Self = _
pub const PushOnPushOff: Self = _
pub const Toggle: Self = _
pub const Switch: Self = _
pub const Radio: Self = _
pub const MomentaryChange: Self = _
pub const OnOff: Self = _
pub const MomentaryPushIn: Self = _
pub const Accelerator: Self = _
pub const MultiLevelAccelerator: Self = _
Trait Implementations§
source§impl Clone for NSButtonType
impl Clone for NSButtonType
source§fn clone(&self) -> NSButtonType
fn clone(&self) -> NSButtonType
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 NSButtonType
impl Debug for NSButtonType
source§impl Encode for NSButtonType
impl Encode for NSButtonType
source§impl Hash for NSButtonType
impl Hash for NSButtonType
source§impl Ord for NSButtonType
impl Ord for NSButtonType
source§fn cmp(&self, other: &NSButtonType) -> Ordering
fn cmp(&self, other: &NSButtonType) -> 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 NSButtonType
impl PartialEq for NSButtonType
source§fn eq(&self, other: &NSButtonType) -> bool
fn eq(&self, other: &NSButtonType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NSButtonType
impl PartialOrd for NSButtonType
source§fn partial_cmp(&self, other: &NSButtonType) -> Option<Ordering>
fn partial_cmp(&self, other: &NSButtonType) -> 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 NSButtonType
impl RefEncode for NSButtonType
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 NSButtonType
impl Eq for NSButtonType
impl StructuralPartialEq for NSButtonType
Auto Trait Implementations§
impl Freeze for NSButtonType
impl RefUnwindSafe for NSButtonType
impl Send for NSButtonType
impl Sync for NSButtonType
impl Unpin for NSButtonType
impl UnwindSafe for NSButtonType
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.