Struct ink_lang_ir::CallableWithSelector[][src]

pub struct CallableWithSelector<'a, C> { /* fields omitted */ }

Wrapper for a callable that adds its composed selector.

Implementations

impl<'a, C> CallableWithSelector<'a, C>[src]

pub fn composed_selector(&self) -> Selector[src]

Returns the composed selector of the ink! callable the the impl block.

pub fn callable(&self) -> &'a C[src]

Returns a shared reference to the underlying callable.

pub fn item_impl(&self) -> &'a ItemImpl[src]

Returns the parent implementation block of the ink! callable.

Trait Implementations

impl<'a, C> Callable for CallableWithSelector<'a, C> where
    C: Callable
[src]

impl<C> Clone for CallableWithSelector<'_, C>[src]

impl<C> Copy for CallableWithSelector<'_, C>[src]

impl<'a, C: Debug> Debug for CallableWithSelector<'a, C>[src]

impl<'a, C> Deref for CallableWithSelector<'a, C>[src]

type Target = C

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a, C> RefUnwindSafe for CallableWithSelector<'a, C> where
    C: RefUnwindSafe

impl<'a, C> !Send for CallableWithSelector<'a, C>

impl<'a, C> !Sync for CallableWithSelector<'a, C>

impl<'a, C> Unpin for CallableWithSelector<'a, C>

impl<'a, C> UnwindSafe for CallableWithSelector<'a, C> where
    C: RefUnwindSafe

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> Same<T> for T

type Output = T

Should always be Self

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.