Struct objc2_app_kit::NSTouchBarItem
source · #[repr(C)]pub struct NSTouchBarItem { /* private fields */ }
Available on crate feature
NSTouchBarItem
only.Implementations§
source§impl NSTouchBarItem
impl NSTouchBarItem
pub unsafe fn initWithIdentifier( this: Allocated<Self>, identifier: &NSTouchBarItemIdentifier ) -> Id<Self>
pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Id<Self>>
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>
pub unsafe fn identifier(&self) -> Id<NSTouchBarItemIdentifier>
pub unsafe fn visibilityPriority(&self) -> NSTouchBarItemPriority
pub unsafe fn setVisibilityPriority( &self, visibility_priority: NSTouchBarItemPriority )
pub unsafe fn view(&self) -> Option<Id<NSView>>
Available on crate features
NSResponder
and NSView
only.pub unsafe fn viewController(&self) -> Option<Id<NSViewController>>
Available on crate features
NSResponder
and NSViewController
only.pub unsafe fn customizationLabel(&self) -> Id<NSString>
pub unsafe fn isVisible(&self) -> bool
source§impl NSTouchBarItem
impl NSTouchBarItem
Methods declared on superclass NSObject
pub unsafe fn new(mtm: MainThreadMarker) -> Id<Self>
Methods from Deref<Target = NSObject>§
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
sourcepub fn class(&self) -> &'static AnyClass
Available on crate feature NSAccessibilityConstants
only.
pub fn class(&self) -> &'static AnyClass
NSAccessibilityConstants
only.Dynamically find the class of this object.
§Example
Check that an instance of NSObject
has the precise class NSObject
.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load
instead.Available on crate feature NSAccessibilityConstants
only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.NSAccessibilityConstants
only.Use Ivar::load
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut
instead.Available on crate feature NSAccessibilityConstants
only.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.NSAccessibilityConstants
only.Use Ivar::load_mut
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
Trait Implementations§
source§impl AsMut<AnyObject> for NSTouchBarItem
impl AsMut<AnyObject> for NSTouchBarItem
source§impl AsMut<NSObject> for NSTouchBarItem
impl AsMut<NSObject> for NSTouchBarItem
source§impl AsMut<NSTouchBarItem> for NSButtonTouchBarItem
Available on crate feature NSButtonTouchBarItem
only.
impl AsMut<NSTouchBarItem> for NSButtonTouchBarItem
Available on crate feature
NSButtonTouchBarItem
only.source§fn as_mut(&mut self) -> &mut NSTouchBarItem
fn as_mut(&mut self) -> &mut NSTouchBarItem
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<CandidateType: ?Sized + Message> AsMut<NSTouchBarItem> for NSCandidateListTouchBarItem<CandidateType>
Available on crate feature NSCandidateListTouchBarItem
only.
impl<CandidateType: ?Sized + Message> AsMut<NSTouchBarItem> for NSCandidateListTouchBarItem<CandidateType>
Available on crate feature
NSCandidateListTouchBarItem
only.source§fn as_mut(&mut self) -> &mut NSTouchBarItem
fn as_mut(&mut self) -> &mut NSTouchBarItem
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<NSTouchBarItem> for NSColorPickerTouchBarItem
Available on crate feature NSColorPickerTouchBarItem
only.
impl AsMut<NSTouchBarItem> for NSColorPickerTouchBarItem
Available on crate feature
NSColorPickerTouchBarItem
only.source§fn as_mut(&mut self) -> &mut NSTouchBarItem
fn as_mut(&mut self) -> &mut NSTouchBarItem
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<NSTouchBarItem> for NSCustomTouchBarItem
Available on crate feature NSCustomTouchBarItem
only.
impl AsMut<NSTouchBarItem> for NSCustomTouchBarItem
Available on crate feature
NSCustomTouchBarItem
only.source§fn as_mut(&mut self) -> &mut NSTouchBarItem
fn as_mut(&mut self) -> &mut NSTouchBarItem
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<NSTouchBarItem> for NSGroupTouchBarItem
Available on crate feature NSGroupTouchBarItem
only.
impl AsMut<NSTouchBarItem> for NSGroupTouchBarItem
Available on crate feature
NSGroupTouchBarItem
only.source§fn as_mut(&mut self) -> &mut NSTouchBarItem
fn as_mut(&mut self) -> &mut NSTouchBarItem
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<NSTouchBarItem> for NSPickerTouchBarItem
Available on crate feature NSPickerTouchBarItem
only.
impl AsMut<NSTouchBarItem> for NSPickerTouchBarItem
Available on crate feature
NSPickerTouchBarItem
only.source§fn as_mut(&mut self) -> &mut NSTouchBarItem
fn as_mut(&mut self) -> &mut NSTouchBarItem
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<NSTouchBarItem> for NSPopoverTouchBarItem
Available on crate feature NSPopoverTouchBarItem
only.
impl AsMut<NSTouchBarItem> for NSPopoverTouchBarItem
Available on crate feature
NSPopoverTouchBarItem
only.source§fn as_mut(&mut self) -> &mut NSTouchBarItem
fn as_mut(&mut self) -> &mut NSTouchBarItem
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<NSTouchBarItem> for NSSharingServicePickerTouchBarItem
Available on crate feature NSSharingServicePickerTouchBarItem
only.
impl AsMut<NSTouchBarItem> for NSSharingServicePickerTouchBarItem
Available on crate feature
NSSharingServicePickerTouchBarItem
only.source§fn as_mut(&mut self) -> &mut NSTouchBarItem
fn as_mut(&mut self) -> &mut NSTouchBarItem
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<NSTouchBarItem> for NSSliderTouchBarItem
Available on crate feature NSSliderTouchBarItem
only.
impl AsMut<NSTouchBarItem> for NSSliderTouchBarItem
Available on crate feature
NSSliderTouchBarItem
only.source§fn as_mut(&mut self) -> &mut NSTouchBarItem
fn as_mut(&mut self) -> &mut NSTouchBarItem
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<NSTouchBarItem> for NSStepperTouchBarItem
Available on crate feature NSStepperTouchBarItem
only.
impl AsMut<NSTouchBarItem> for NSStepperTouchBarItem
Available on crate feature
NSStepperTouchBarItem
only.source§fn as_mut(&mut self) -> &mut NSTouchBarItem
fn as_mut(&mut self) -> &mut NSTouchBarItem
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<NSTouchBarItem> for NSTouchBarItem
impl AsMut<NSTouchBarItem> for NSTouchBarItem
source§impl AsRef<AnyObject> for NSTouchBarItem
impl AsRef<AnyObject> for NSTouchBarItem
source§impl AsRef<NSObject> for NSTouchBarItem
impl AsRef<NSObject> for NSTouchBarItem
source§impl AsRef<NSTouchBarItem> for NSButtonTouchBarItem
Available on crate feature NSButtonTouchBarItem
only.
impl AsRef<NSTouchBarItem> for NSButtonTouchBarItem
Available on crate feature
NSButtonTouchBarItem
only.source§fn as_ref(&self) -> &NSTouchBarItem
fn as_ref(&self) -> &NSTouchBarItem
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<CandidateType: ?Sized + Message> AsRef<NSTouchBarItem> for NSCandidateListTouchBarItem<CandidateType>
Available on crate feature NSCandidateListTouchBarItem
only.
impl<CandidateType: ?Sized + Message> AsRef<NSTouchBarItem> for NSCandidateListTouchBarItem<CandidateType>
Available on crate feature
NSCandidateListTouchBarItem
only.source§fn as_ref(&self) -> &NSTouchBarItem
fn as_ref(&self) -> &NSTouchBarItem
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<NSTouchBarItem> for NSColorPickerTouchBarItem
Available on crate feature NSColorPickerTouchBarItem
only.
impl AsRef<NSTouchBarItem> for NSColorPickerTouchBarItem
Available on crate feature
NSColorPickerTouchBarItem
only.source§fn as_ref(&self) -> &NSTouchBarItem
fn as_ref(&self) -> &NSTouchBarItem
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<NSTouchBarItem> for NSCustomTouchBarItem
Available on crate feature NSCustomTouchBarItem
only.
impl AsRef<NSTouchBarItem> for NSCustomTouchBarItem
Available on crate feature
NSCustomTouchBarItem
only.source§fn as_ref(&self) -> &NSTouchBarItem
fn as_ref(&self) -> &NSTouchBarItem
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<NSTouchBarItem> for NSGroupTouchBarItem
Available on crate feature NSGroupTouchBarItem
only.
impl AsRef<NSTouchBarItem> for NSGroupTouchBarItem
Available on crate feature
NSGroupTouchBarItem
only.source§fn as_ref(&self) -> &NSTouchBarItem
fn as_ref(&self) -> &NSTouchBarItem
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<NSTouchBarItem> for NSPickerTouchBarItem
Available on crate feature NSPickerTouchBarItem
only.
impl AsRef<NSTouchBarItem> for NSPickerTouchBarItem
Available on crate feature
NSPickerTouchBarItem
only.source§fn as_ref(&self) -> &NSTouchBarItem
fn as_ref(&self) -> &NSTouchBarItem
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<NSTouchBarItem> for NSPopoverTouchBarItem
Available on crate feature NSPopoverTouchBarItem
only.
impl AsRef<NSTouchBarItem> for NSPopoverTouchBarItem
Available on crate feature
NSPopoverTouchBarItem
only.source§fn as_ref(&self) -> &NSTouchBarItem
fn as_ref(&self) -> &NSTouchBarItem
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<NSTouchBarItem> for NSSharingServicePickerTouchBarItem
Available on crate feature NSSharingServicePickerTouchBarItem
only.
impl AsRef<NSTouchBarItem> for NSSharingServicePickerTouchBarItem
Available on crate feature
NSSharingServicePickerTouchBarItem
only.source§fn as_ref(&self) -> &NSTouchBarItem
fn as_ref(&self) -> &NSTouchBarItem
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<NSTouchBarItem> for NSSliderTouchBarItem
Available on crate feature NSSliderTouchBarItem
only.
impl AsRef<NSTouchBarItem> for NSSliderTouchBarItem
Available on crate feature
NSSliderTouchBarItem
only.source§fn as_ref(&self) -> &NSTouchBarItem
fn as_ref(&self) -> &NSTouchBarItem
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<NSTouchBarItem> for NSStepperTouchBarItem
Available on crate feature NSStepperTouchBarItem
only.
impl AsRef<NSTouchBarItem> for NSStepperTouchBarItem
Available on crate feature
NSStepperTouchBarItem
only.source§fn as_ref(&self) -> &NSTouchBarItem
fn as_ref(&self) -> &NSTouchBarItem
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<NSTouchBarItem> for NSTouchBarItem
impl AsRef<NSTouchBarItem> for NSTouchBarItem
source§impl Borrow<AnyObject> for NSTouchBarItem
impl Borrow<AnyObject> for NSTouchBarItem
source§impl Borrow<NSObject> for NSTouchBarItem
impl Borrow<NSObject> for NSTouchBarItem
source§impl Borrow<NSTouchBarItem> for NSButtonTouchBarItem
Available on crate feature NSButtonTouchBarItem
only.
impl Borrow<NSTouchBarItem> for NSButtonTouchBarItem
Available on crate feature
NSButtonTouchBarItem
only.source§fn borrow(&self) -> &NSTouchBarItem
fn borrow(&self) -> &NSTouchBarItem
Immutably borrows from an owned value. Read more
source§impl<CandidateType: ?Sized + Message> Borrow<NSTouchBarItem> for NSCandidateListTouchBarItem<CandidateType>
Available on crate feature NSCandidateListTouchBarItem
only.
impl<CandidateType: ?Sized + Message> Borrow<NSTouchBarItem> for NSCandidateListTouchBarItem<CandidateType>
Available on crate feature
NSCandidateListTouchBarItem
only.source§fn borrow(&self) -> &NSTouchBarItem
fn borrow(&self) -> &NSTouchBarItem
Immutably borrows from an owned value. Read more
source§impl Borrow<NSTouchBarItem> for NSColorPickerTouchBarItem
Available on crate feature NSColorPickerTouchBarItem
only.
impl Borrow<NSTouchBarItem> for NSColorPickerTouchBarItem
Available on crate feature
NSColorPickerTouchBarItem
only.source§fn borrow(&self) -> &NSTouchBarItem
fn borrow(&self) -> &NSTouchBarItem
Immutably borrows from an owned value. Read more
source§impl Borrow<NSTouchBarItem> for NSCustomTouchBarItem
Available on crate feature NSCustomTouchBarItem
only.
impl Borrow<NSTouchBarItem> for NSCustomTouchBarItem
Available on crate feature
NSCustomTouchBarItem
only.source§fn borrow(&self) -> &NSTouchBarItem
fn borrow(&self) -> &NSTouchBarItem
Immutably borrows from an owned value. Read more
source§impl Borrow<NSTouchBarItem> for NSGroupTouchBarItem
Available on crate feature NSGroupTouchBarItem
only.
impl Borrow<NSTouchBarItem> for NSGroupTouchBarItem
Available on crate feature
NSGroupTouchBarItem
only.source§fn borrow(&self) -> &NSTouchBarItem
fn borrow(&self) -> &NSTouchBarItem
Immutably borrows from an owned value. Read more
source§impl Borrow<NSTouchBarItem> for NSPickerTouchBarItem
Available on crate feature NSPickerTouchBarItem
only.
impl Borrow<NSTouchBarItem> for NSPickerTouchBarItem
Available on crate feature
NSPickerTouchBarItem
only.source§fn borrow(&self) -> &NSTouchBarItem
fn borrow(&self) -> &NSTouchBarItem
Immutably borrows from an owned value. Read more
source§impl Borrow<NSTouchBarItem> for NSPopoverTouchBarItem
Available on crate feature NSPopoverTouchBarItem
only.
impl Borrow<NSTouchBarItem> for NSPopoverTouchBarItem
Available on crate feature
NSPopoverTouchBarItem
only.source§fn borrow(&self) -> &NSTouchBarItem
fn borrow(&self) -> &NSTouchBarItem
Immutably borrows from an owned value. Read more
source§impl Borrow<NSTouchBarItem> for NSSharingServicePickerTouchBarItem
Available on crate feature NSSharingServicePickerTouchBarItem
only.
impl Borrow<NSTouchBarItem> for NSSharingServicePickerTouchBarItem
Available on crate feature
NSSharingServicePickerTouchBarItem
only.source§fn borrow(&self) -> &NSTouchBarItem
fn borrow(&self) -> &NSTouchBarItem
Immutably borrows from an owned value. Read more
source§impl Borrow<NSTouchBarItem> for NSSliderTouchBarItem
Available on crate feature NSSliderTouchBarItem
only.
impl Borrow<NSTouchBarItem> for NSSliderTouchBarItem
Available on crate feature
NSSliderTouchBarItem
only.source§fn borrow(&self) -> &NSTouchBarItem
fn borrow(&self) -> &NSTouchBarItem
Immutably borrows from an owned value. Read more
source§impl Borrow<NSTouchBarItem> for NSStepperTouchBarItem
Available on crate feature NSStepperTouchBarItem
only.
impl Borrow<NSTouchBarItem> for NSStepperTouchBarItem
Available on crate feature
NSStepperTouchBarItem
only.source§fn borrow(&self) -> &NSTouchBarItem
fn borrow(&self) -> &NSTouchBarItem
Immutably borrows from an owned value. Read more
source§impl BorrowMut<AnyObject> for NSTouchBarItem
impl BorrowMut<AnyObject> for NSTouchBarItem
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSObject> for NSTouchBarItem
impl BorrowMut<NSObject> for NSTouchBarItem
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSTouchBarItem> for NSButtonTouchBarItem
Available on crate feature NSButtonTouchBarItem
only.
impl BorrowMut<NSTouchBarItem> for NSButtonTouchBarItem
Available on crate feature
NSButtonTouchBarItem
only.source§fn borrow_mut(&mut self) -> &mut NSTouchBarItem
fn borrow_mut(&mut self) -> &mut NSTouchBarItem
Mutably borrows from an owned value. Read more
source§impl<CandidateType: ?Sized + Message> BorrowMut<NSTouchBarItem> for NSCandidateListTouchBarItem<CandidateType>
Available on crate feature NSCandidateListTouchBarItem
only.
impl<CandidateType: ?Sized + Message> BorrowMut<NSTouchBarItem> for NSCandidateListTouchBarItem<CandidateType>
Available on crate feature
NSCandidateListTouchBarItem
only.source§fn borrow_mut(&mut self) -> &mut NSTouchBarItem
fn borrow_mut(&mut self) -> &mut NSTouchBarItem
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSTouchBarItem> for NSColorPickerTouchBarItem
Available on crate feature NSColorPickerTouchBarItem
only.
impl BorrowMut<NSTouchBarItem> for NSColorPickerTouchBarItem
Available on crate feature
NSColorPickerTouchBarItem
only.source§fn borrow_mut(&mut self) -> &mut NSTouchBarItem
fn borrow_mut(&mut self) -> &mut NSTouchBarItem
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSTouchBarItem> for NSCustomTouchBarItem
Available on crate feature NSCustomTouchBarItem
only.
impl BorrowMut<NSTouchBarItem> for NSCustomTouchBarItem
Available on crate feature
NSCustomTouchBarItem
only.source§fn borrow_mut(&mut self) -> &mut NSTouchBarItem
fn borrow_mut(&mut self) -> &mut NSTouchBarItem
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSTouchBarItem> for NSGroupTouchBarItem
Available on crate feature NSGroupTouchBarItem
only.
impl BorrowMut<NSTouchBarItem> for NSGroupTouchBarItem
Available on crate feature
NSGroupTouchBarItem
only.source§fn borrow_mut(&mut self) -> &mut NSTouchBarItem
fn borrow_mut(&mut self) -> &mut NSTouchBarItem
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSTouchBarItem> for NSPickerTouchBarItem
Available on crate feature NSPickerTouchBarItem
only.
impl BorrowMut<NSTouchBarItem> for NSPickerTouchBarItem
Available on crate feature
NSPickerTouchBarItem
only.source§fn borrow_mut(&mut self) -> &mut NSTouchBarItem
fn borrow_mut(&mut self) -> &mut NSTouchBarItem
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSTouchBarItem> for NSPopoverTouchBarItem
Available on crate feature NSPopoverTouchBarItem
only.
impl BorrowMut<NSTouchBarItem> for NSPopoverTouchBarItem
Available on crate feature
NSPopoverTouchBarItem
only.source§fn borrow_mut(&mut self) -> &mut NSTouchBarItem
fn borrow_mut(&mut self) -> &mut NSTouchBarItem
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSTouchBarItem> for NSSharingServicePickerTouchBarItem
Available on crate feature NSSharingServicePickerTouchBarItem
only.
impl BorrowMut<NSTouchBarItem> for NSSharingServicePickerTouchBarItem
Available on crate feature
NSSharingServicePickerTouchBarItem
only.source§fn borrow_mut(&mut self) -> &mut NSTouchBarItem
fn borrow_mut(&mut self) -> &mut NSTouchBarItem
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSTouchBarItem> for NSSliderTouchBarItem
Available on crate feature NSSliderTouchBarItem
only.
impl BorrowMut<NSTouchBarItem> for NSSliderTouchBarItem
Available on crate feature
NSSliderTouchBarItem
only.source§fn borrow_mut(&mut self) -> &mut NSTouchBarItem
fn borrow_mut(&mut self) -> &mut NSTouchBarItem
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSTouchBarItem> for NSStepperTouchBarItem
Available on crate feature NSStepperTouchBarItem
only.
impl BorrowMut<NSTouchBarItem> for NSStepperTouchBarItem
Available on crate feature
NSStepperTouchBarItem
only.source§fn borrow_mut(&mut self) -> &mut NSTouchBarItem
fn borrow_mut(&mut self) -> &mut NSTouchBarItem
Mutably borrows from an owned value. Read more
source§impl ClassType for NSTouchBarItem
impl ClassType for NSTouchBarItem
§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "NSTouchBarItem"
const NAME: &'static str = "NSTouchBarItem"
The name of the Objective-C class that this type represents. Read more
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
source§impl Debug for NSTouchBarItem
impl Debug for NSTouchBarItem
source§impl Deref for NSTouchBarItem
impl Deref for NSTouchBarItem
source§impl DerefMut for NSTouchBarItem
impl DerefMut for NSTouchBarItem
source§impl Hash for NSTouchBarItem
impl Hash for NSTouchBarItem
source§impl NSCoding for NSTouchBarItem
impl NSCoding for NSTouchBarItem
source§impl NSObjectProtocol for NSTouchBarItem
impl NSObjectProtocol for NSTouchBarItem
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
source§fn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of the class, or one of its
subclasses. Read more
source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Check if the object is an instance of the class type, or one of its
subclasses. Read more
source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
source§fn debugDescription(&self) -> Id<NSObject>
fn debugDescription(&self) -> Id<NSObject>
A textual representation of the object to use when debugging. Read more
source§impl PartialEq for NSTouchBarItem
impl PartialEq for NSTouchBarItem
source§fn eq(&self, other: &NSTouchBarItem) -> bool
fn eq(&self, other: &NSTouchBarItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RefEncode for NSTouchBarItem
impl RefEncode for NSTouchBarItem
source§const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for NSTouchBarItem
impl Message for NSTouchBarItem
impl StructuralPartialEq for NSTouchBarItem
Auto Trait Implementations§
impl !Freeze for NSTouchBarItem
impl !RefUnwindSafe for NSTouchBarItem
impl !Send for NSTouchBarItem
impl !Sync for NSTouchBarItem
impl !Unpin for NSTouchBarItem
impl !UnwindSafe for NSTouchBarItem
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> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
§type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
The immutable counterpart of the type, or
Self
if the type has no
immutable counterpart. Read more§type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
The mutable counterpart of the type, or
Self
if the type has no
mutable counterpart. Read more