#[repr(C)]
pub struct Class(_);
Expand description

A type that represents an Objective-C class.

Implementations

Returns the class definition of a specified class, or None if the class is not registered with the Objective-C runtime.

Obtains the list of registered class definitions.

Returns the total number of registered classes.

Returns the name of the class.

Returns the superclass of self, or None if self is a root class.

Returns the metaclass of self.

Returns the size of instances of self.

Returns a specified instance method for self, or None if self and its superclasses do not contain an instance method with the specified selector.

Returns the ivar for a specified instance variable of self, or None if self has no ivar with the given name.

Describes the instance methods implemented by self.

Checks whether this class conforms to the specified protocol.

Get a list of the protocols to which this class conforms.

Describes the instance variables declared by self.

Trait Implementations

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Sends a message to self with the given selector and arguments. Read more

Sends a message to self’s superclass with the given selector and arguments. Read more

Verify that the argument and return types match the encoding of the method for the given selector. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The Objective-C type-encoding for a reference of this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.