[−][src]Struct objc::runtime::Sel
A type that represents a method selector.
Implementations
impl Sel
[src][−]
pub fn register(name: &str) -> Sel
[src][−]
Registers a method with the Objective-C runtime system, maps the method name to a selector, and returns the selector value.
pub fn name(&self) -> &str
[src][−]
Returns the name of the method specified by self.
pub unsafe fn from_ptr(ptr: *const c_void) -> Sel
[src][−]
Wraps a raw pointer to a selector into a Sel
object.
This is almost never what you want; use Sel::register()
instead.
pub fn as_ptr(&self) -> *const c_void
[src][−]
Returns a pointer to the raw selector.
Trait Implementations
impl Clone for Sel
[src][+]
impl Copy for Sel
[src]
impl Debug for Sel
[src][+]
impl Encode for Sel
[src][+]
impl Eq for Sel
[src]
impl PartialEq<Sel> for Sel
[src][+]
impl Send for Sel
[src]
impl Sync for Sel
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,