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

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

A type that represents a method selector.

Methods

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 Encode for Sel[src]

impl Copy for Sel[src]

impl PartialEq<Sel> for Sel[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Sync for Sel[src]

impl Clone for Sel[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Send for Sel[src]

impl Eq for Sel[src]

impl Debug for Sel[src]

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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