Trait objc2::rc::DefaultId

source ·
pub trait DefaultId {
    type Ownership: Ownership;

    // Required method
    fn default_id() -> Id<Self, Self::Ownership>;
}
Expand description

Helper trait to implement Default on types whoose default value is an Id.

Required Associated Types§

source

type Ownership: Ownership

Indicates whether the default value is mutable or immutable.

Required Methods§

source

fn default_id() -> Id<Self, Self::Ownership>

The default Id for a type.

On most objects the implementation would just be sending a message to the new selector.

Implementors§