[−][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,
fn borrow_mut(&mut self) -> &mut T
[src]
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,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,