#[repr(C)]pub struct NSPredicate { /* private fields */ }👎Deprecated:
icrate::Foundation has been moved to objc2-foundationAvailable on crate features
Foundation and Foundation_NSPredicate only.Implementations§
Source§impl NSPredicate
impl NSPredicate
pub unsafe fn predicateWithFormat_argumentArray( predicate_format: &NSString, arguments: Option<&NSArray>, ) -> Id<NSPredicate>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationAvailable on crate features
Foundation_NSArray and Foundation_NSString only.pub unsafe fn predicateFromMetadataQueryString( query_string: &NSString, ) -> Option<Id<NSPredicate>>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationAvailable on crate feature
Foundation_NSString only.pub unsafe fn predicateWithValue(value: bool) -> Id<NSPredicate>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn predicateWithBlock( block: &Block<(*mut AnyObject, *mut NSDictionary<NSString, AnyObject>), Bool>, ) -> Id<NSPredicate>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationAvailable on crate features
Foundation_NSDictionary and Foundation_NSString only.pub unsafe fn predicateFormat(&self) -> Id<NSString>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationAvailable on crate feature
Foundation_NSString only.pub unsafe fn predicateWithSubstitutionVariables( &self, variables: &NSDictionary<NSString, AnyObject>, ) -> Id<Self>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationAvailable on crate features
Foundation_NSDictionary and Foundation_NSString only.pub unsafe fn evaluateWithObject(&self, object: Option<&AnyObject>) -> bool
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn evaluateWithObject_substitutionVariables( &self, object: Option<&AnyObject>, bindings: Option<&NSDictionary<NSString, AnyObject>>, ) -> bool
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationAvailable on crate features
Foundation_NSDictionary and Foundation_NSString only.pub unsafe fn allowEvaluation(&self)
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationMethods from Deref<Target = NSObject>§
Sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Available on crate feature AuthenticationServices only.
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
AuthenticationServices only.Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
Sourcepub fn class(&self) -> &'static AnyClass
pub fn class(&self) -> &'static AnyClass
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.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load instead.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.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut instead.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 NSPredicate
impl AsMut<AnyObject> for NSPredicate
Source§impl AsMut<NSObject> for NSPredicate
impl AsMut<NSObject> for NSPredicate
Source§impl AsMut<NSPredicate> for NSComparisonPredicate
impl AsMut<NSPredicate> for NSComparisonPredicate
Source§fn as_mut(&mut self) -> &mut NSPredicate
fn as_mut(&mut self) -> &mut NSPredicate
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsMut<NSPredicate> for NSCompoundPredicate
impl AsMut<NSPredicate> for NSCompoundPredicate
Source§fn as_mut(&mut self) -> &mut NSPredicate
fn as_mut(&mut self) -> &mut NSPredicate
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsMut<NSPredicate> for NSPredicate
impl AsMut<NSPredicate> for NSPredicate
Source§impl AsRef<AnyObject> for NSPredicate
impl AsRef<AnyObject> for NSPredicate
Source§impl AsRef<NSObject> for NSPredicate
impl AsRef<NSObject> for NSPredicate
Source§impl AsRef<NSPredicate> for NSComparisonPredicate
impl AsRef<NSPredicate> for NSComparisonPredicate
Source§fn as_ref(&self) -> &NSPredicate
fn as_ref(&self) -> &NSPredicate
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<NSPredicate> for NSCompoundPredicate
impl AsRef<NSPredicate> for NSCompoundPredicate
Source§fn as_ref(&self) -> &NSPredicate
fn as_ref(&self) -> &NSPredicate
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<NSPredicate> for NSPredicate
impl AsRef<NSPredicate> for NSPredicate
Source§impl Borrow<AnyObject> for NSPredicate
impl Borrow<AnyObject> for NSPredicate
Source§impl Borrow<NSObject> for NSPredicate
impl Borrow<NSObject> for NSPredicate
Source§impl Borrow<NSPredicate> for NSComparisonPredicate
impl Borrow<NSPredicate> for NSComparisonPredicate
Source§fn borrow(&self) -> &NSPredicate
fn borrow(&self) -> &NSPredicate
Immutably borrows from an owned value. Read more
Source§impl Borrow<NSPredicate> for NSCompoundPredicate
impl Borrow<NSPredicate> for NSCompoundPredicate
Source§fn borrow(&self) -> &NSPredicate
fn borrow(&self) -> &NSPredicate
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<AnyObject> for NSPredicate
impl BorrowMut<AnyObject> for NSPredicate
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 NSPredicate
impl BorrowMut<NSObject> for NSPredicate
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<NSPredicate> for NSComparisonPredicate
impl BorrowMut<NSPredicate> for NSComparisonPredicate
Source§fn borrow_mut(&mut self) -> &mut NSPredicate
fn borrow_mut(&mut self) -> &mut NSPredicate
Mutably borrows from an owned value. Read more
Source§impl BorrowMut<NSPredicate> for NSCompoundPredicate
impl BorrowMut<NSPredicate> for NSCompoundPredicate
Source§fn borrow_mut(&mut self) -> &mut NSPredicate
fn borrow_mut(&mut self) -> &mut NSPredicate
Mutably borrows from an owned value. Read more
Source§impl ClassType for NSPredicate
impl ClassType for NSPredicate
Source§const NAME: &'static str = "NSPredicate"
const NAME: &'static str = "NSPredicate"
The name of the Objective-C class that this type represents. Read more
Source§type Mutability = InteriorMutable
type Mutability = InteriorMutable
Whether the type is mutable or immutable. 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 NSPredicate
impl Debug for NSPredicate
Source§impl Deref for NSPredicate
impl Deref for NSPredicate
Source§impl DerefMut for NSPredicate
impl DerefMut for NSPredicate
Source§impl Hash for NSPredicate
impl Hash for NSPredicate
Source§impl NSCoding for NSPredicate
impl NSCoding for NSPredicate
Source§unsafe fn encodeWithCoder(&self, coder: &NSCoder)
unsafe fn encodeWithCoder(&self, coder: &NSCoder)
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationAvailable on crate feature
Foundation_NSCoder only.Source§impl NSCopying for NSPredicate
impl NSCopying for NSPredicate
Source§impl NSObjectProtocol for NSPredicate
impl NSObjectProtocol for NSPredicate
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 NSSecureCoding for NSPredicate
impl NSSecureCoding for NSPredicate
Source§impl PartialEq for NSPredicate
impl PartialEq for NSPredicate
Source§impl RefEncode for NSPredicate
impl RefEncode for NSPredicate
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 NSPredicate
impl Message for NSPredicate
impl StructuralPartialEq for NSPredicate
Auto Trait Implementations§
impl !Freeze for NSPredicate
impl !RefUnwindSafe for NSPredicate
impl !Send for NSPredicate
impl !Sync for NSPredicate
impl !Unpin for NSPredicate
impl !UnwindSafe for NSPredicate
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