Struct ink_lang_ir::CallableWithSelector [−][src]
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]
C: Callable,
fn kind(&self) -> CallableKind
[src]
fn ident(&self) -> &Ident
[src]
fn user_provided_selector(&self) -> Option<&Selector>
[src]
fn is_payable(&self) -> bool
[src]
fn visibility(&self) -> Visibility
[src]
fn inputs(&self) -> InputsIter<'_>ⓘNotable traits for InputsIter<'a>
impl<'a> Iterator for InputsIter<'a> type Item = &'a PatType;
[src]
Notable traits for InputsIter<'a>
impl<'a> Iterator for InputsIter<'a> type Item = &'a PatType;
fn inputs_span(&self) -> Span
[src]
fn statements(&self) -> &[Stmt]
[src]
impl<C> Clone for CallableWithSelector<'_, C>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
Auto Trait Implementations
impl<'a, C> RefUnwindSafe for CallableWithSelector<'a, C> where
C: RefUnwindSafe,
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,
C: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,