Struct objc::runtime::Protocol [−][src]
#[repr(C)]pub struct Protocol { /* fields omitted */ }
A type that represents an Objective-C protocol.
Methods
impl Protocol
[src]
impl Protocol
pub fn get(name: &str) -> Option<&'static Protocol>
[src]
pub fn get(name: &str) -> Option<&'static Protocol>
Returns the protocol definition of a specified protocol, or None
if the
protocol is not registered with the Objective-C runtime.
pub fn protocols() -> MallocBuffer<&'static Protocol>
[src]
pub fn protocols() -> MallocBuffer<&'static Protocol>
Obtains the list of registered protocol definitions.
pub fn adopted_protocols(&self) -> MallocBuffer<&Protocol>
[src]
pub fn adopted_protocols(&self) -> MallocBuffer<&Protocol>
Get a list of the protocols to which this protocol conforms.
pub fn conforms_to(&self, proto: &Protocol) -> bool
[src]
pub fn conforms_to(&self, proto: &Protocol) -> bool
Checks whether this protocol conforms to the specified protocol.
pub fn name(&self) -> &str
[src]
pub fn name(&self) -> &str
Returns the name of self.
Trait Implementations
impl PartialEq for Protocol
[src]
impl PartialEq for Protocol
fn eq(&self, other: &Protocol) -> bool
[src]
fn eq(&self, other: &Protocol) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Protocol
[src]
impl Eq for Protocol
impl Debug for Protocol
[src]
impl Debug for Protocol