#[repr(C)]pub struct NSUnitVolume { /* private fields */ }👎Deprecated:
icrate::Foundation has been moved to objc2-foundationAvailable on crate features
Foundation and Foundation_NSUnitVolume only.Implementations§
Source§impl NSUnitVolume
impl NSUnitVolume
pub unsafe fn megaliters() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn kiloliters() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn liters() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn deciliters() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn centiliters() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn milliliters() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn cubicKilometers() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn cubicMeters() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn cubicDecimeters() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn cubicCentimeters() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn cubicMillimeters() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn cubicInches() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn cubicFeet() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn cubicYards() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn cubicMiles() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn acreFeet() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn bushels() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn teaspoons() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn tablespoons() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn fluidOunces() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn cups() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn pints() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn quarts() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn gallons() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn imperialTeaspoons() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn imperialTablespoons() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn imperialFluidOunces() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn imperialPints() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn imperialQuarts() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn imperialGallons() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn metricCups() -> Id<NSUnitVolume>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationSource§impl NSUnitVolume
Methods declared on superclass NSDimension
impl NSUnitVolume
Methods declared on superclass NSDimension
pub unsafe fn initWithSymbol_converter( this: Allocated<Self>, symbol: &NSString, converter: &NSUnitConverter, ) -> Id<Self>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationAvailable on crate features
Foundation_NSString and Foundation_NSUnitConverter only.pub unsafe fn baseUnit() -> Id<Self>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationSource§impl NSUnitVolume
Methods declared on superclass NSUnit
impl NSUnitVolume
Methods declared on superclass NSUnit
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn new() -> Id<Self>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationpub unsafe fn initWithSymbol( this: Allocated<Self>, symbol: &NSString, ) -> Id<Self>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationAvailable on crate feature
Foundation_NSString only.Methods from Deref<Target = NSDimension>§
pub unsafe fn converter(&self) -> Id<NSUnitConverter>
👎Deprecated:
icrate::Foundation has been moved to objc2-foundationAvailable on crate features
Foundation_NSDimension and Foundation_NSUnitConverter only.Methods 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 NSUnitVolume
impl AsMut<AnyObject> for NSUnitVolume
Source§impl AsMut<NSDimension> for NSUnitVolume
impl AsMut<NSDimension> for NSUnitVolume
Source§fn as_mut(&mut self) -> &mut NSDimension
fn as_mut(&mut self) -> &mut NSDimension
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsMut<NSObject> for NSUnitVolume
impl AsMut<NSObject> for NSUnitVolume
Source§impl AsMut<NSUnit> for NSUnitVolume
impl AsMut<NSUnit> for NSUnitVolume
Source§impl AsMut<NSUnitVolume> for NSUnitVolume
impl AsMut<NSUnitVolume> for NSUnitVolume
Source§impl AsRef<AnyObject> for NSUnitVolume
impl AsRef<AnyObject> for NSUnitVolume
Source§impl AsRef<NSDimension> for NSUnitVolume
impl AsRef<NSDimension> for NSUnitVolume
Source§fn as_ref(&self) -> &NSDimension
fn as_ref(&self) -> &NSDimension
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<NSObject> for NSUnitVolume
impl AsRef<NSObject> for NSUnitVolume
Source§impl AsRef<NSUnit> for NSUnitVolume
impl AsRef<NSUnit> for NSUnitVolume
Source§impl AsRef<NSUnitVolume> for NSUnitVolume
impl AsRef<NSUnitVolume> for NSUnitVolume
Source§impl Borrow<AnyObject> for NSUnitVolume
impl Borrow<AnyObject> for NSUnitVolume
Source§impl Borrow<NSDimension> for NSUnitVolume
impl Borrow<NSDimension> for NSUnitVolume
Source§fn borrow(&self) -> &NSDimension
fn borrow(&self) -> &NSDimension
Immutably borrows from an owned value. Read more
Source§impl Borrow<NSObject> for NSUnitVolume
impl Borrow<NSObject> for NSUnitVolume
Source§impl Borrow<NSUnit> for NSUnitVolume
impl Borrow<NSUnit> for NSUnitVolume
Source§impl BorrowMut<AnyObject> for NSUnitVolume
impl BorrowMut<AnyObject> for NSUnitVolume
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<NSDimension> for NSUnitVolume
impl BorrowMut<NSDimension> for NSUnitVolume
Source§fn borrow_mut(&mut self) -> &mut NSDimension
fn borrow_mut(&mut self) -> &mut NSDimension
Mutably borrows from an owned value. Read more
Source§impl BorrowMut<NSObject> for NSUnitVolume
impl BorrowMut<NSObject> for NSUnitVolume
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<NSUnit> for NSUnitVolume
impl BorrowMut<NSUnit> for NSUnitVolume
Source§fn borrow_mut(&mut self) -> &mut NSUnit
fn borrow_mut(&mut self) -> &mut NSUnit
Mutably borrows from an owned value. Read more
Source§impl ClassType for NSUnitVolume
impl ClassType for NSUnitVolume
Source§const NAME: &'static str = "NSUnitVolume"
const NAME: &'static str = "NSUnitVolume"
The name of the Objective-C class that this type represents. Read more
Source§type Super = NSDimension
type Super = NSDimension
The superclass of this class. 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 NSUnitVolume
impl Debug for NSUnitVolume
Source§impl Deref for NSUnitVolume
impl Deref for NSUnitVolume
Source§impl DerefMut for NSUnitVolume
impl DerefMut for NSUnitVolume
Source§impl Hash for NSUnitVolume
impl Hash for NSUnitVolume
Source§impl NSCoding for NSUnitVolume
impl NSCoding for NSUnitVolume
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 NSUnitVolume
impl NSCopying for NSUnitVolume
Source§impl NSObjectProtocol for NSUnitVolume
impl NSObjectProtocol for NSUnitVolume
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 NSUnitVolume
impl NSSecureCoding for NSUnitVolume
Source§impl PartialEq for NSUnitVolume
impl PartialEq for NSUnitVolume
Source§impl RefEncode for NSUnitVolume
impl RefEncode for NSUnitVolume
Source§const ENCODING_REF: Encoding = <NSDimension as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSDimension as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for NSUnitVolume
impl Message for NSUnitVolume
impl Send for NSUnitVolume
impl StructuralPartialEq for NSUnitVolume
impl Sync for NSUnitVolume
Auto Trait Implementations§
impl !Freeze for NSUnitVolume
impl !RefUnwindSafe for NSUnitVolume
impl !Unpin for NSUnitVolume
impl !UnwindSafe for NSUnitVolume
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