#[repr(C)]pub struct Protocol { /* private fields */ }
Expand description
A type that represents an Objective-C protocol.
Implementations§
source§impl Protocol
impl Protocol
sourcepub fn get(name: &str) -> Option<&'static Protocol>
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.
sourcepub fn protocols() -> MallocBuffer<&'static Protocol>
pub fn protocols() -> MallocBuffer<&'static Protocol>
Obtains the list of registered protocol definitions.
sourcepub fn adopted_protocols(&self) -> MallocBuffer<&Protocol>
pub fn adopted_protocols(&self) -> MallocBuffer<&Protocol>
Get a list of the protocols to which this protocol conforms.
sourcepub fn conforms_to(&self, proto: &Protocol) -> bool
pub fn conforms_to(&self, proto: &Protocol) -> bool
Checks whether this protocol conforms to the specified protocol.
Trait Implementations§
source§impl PartialEq<Protocol> for Protocol
impl PartialEq<Protocol> for Protocol
impl Eq for Protocol
Auto Trait Implementations§
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnwindSafe for Protocol
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more