[−][src]Struct objc::runtime::Sel
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]
fn eq(&self, other: &Sel) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Sync for Sel
[src]
impl Clone for Sel
[src]
fn clone(&self) -> 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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,