Struct makepad_objc_sys::runtime::Protocol
source · [−]#[repr(C)]pub struct Protocol { /* private fields */ }
Implementations
sourceimpl 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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more