#[repr(C)]pub struct Protocol { /* private fields */ }
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§
Auto Trait Implementations§
impl Freeze for Protocol
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