[][src]Struct fruity::objc::SEL

#[repr(transparent)]pub struct SEL(_);

A method selector.

Selectors can be safely created using the selector! macro.

See documentation.

Implementations

impl SEL[src]

pub unsafe fn register(name: *const c_char) -> Self[src]

Registers a method name with the Objective-C runtime and returns the selector.

Safety

The name must be a non-null UTF-8 C string.

pub fn name(self) -> &'static CStr[src]

Returns the name of the method this selector refers to.

Trait Implementations

impl Clone for SEL[src]

impl Copy for SEL[src]

impl Debug 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.