[][src]Struct objc::runtime::Sel

#[repr(C)]pub struct Sel { /* fields omitted */ }

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

impl RefUnwindSafe for Sel

impl Unpin for Sel

impl UnwindSafe for Sel

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.