Struct objc2::declare::ProtocolDecl[][src]

pub struct ProtocolDecl { /* fields omitted */ }
Expand description

A type for declaring a new protocol and adding new methods to it before registering it.

Implementations

Constructs a ProtocolDecl with the given name.

Returns None if the protocol couldn’t be allocated.

Adds an instance method declaration with a given description.

Adds a class method declaration with a given description.

Adds a requirement on another protocol.

Registers the ProtocolDecl, consuming it and returning a reference to the newly registered Protocol.

Trait Implementations

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

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.