Struct objc::declare::ProtocolDecl[][src]

pub struct ProtocolDecl { /* fields omitted */ }

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

Methods

impl ProtocolDecl
[src]

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 to self.

Adds a class method declaration with a given description to self.

Adds a requirement on another protocol.

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

Auto Trait Implementations

impl !Send for ProtocolDecl

impl !Sync for ProtocolDecl