Struct ink_lang_ir::CallableWithSelector
source · [−]pub struct CallableWithSelector<'a, C> { /* private fields */ }
Expand description
Wrapper for a callable that adds its composed selector.
Implementations
sourceimpl<'a, C> CallableWithSelector<'a, C>
impl<'a, C> CallableWithSelector<'a, C>
sourcepub fn composed_selector(&self) -> Selector
pub fn composed_selector(&self) -> Selector
Returns the composed selector of the ink! callable the impl
block.
Trait Implementations
sourceimpl<'a, C> Callable for CallableWithSelector<'a, C>where
C: Callable,
impl<'a, C> Callable for CallableWithSelector<'a, C>where
C: Callable,
sourcefn kind(&self) -> CallableKind
fn kind(&self) -> CallableKind
Returns the kind of the ink! callable.
sourcefn user_provided_selector(&self) -> Option<&Selector>
fn user_provided_selector(&self) -> Option<&Selector>
Returns the selector of the ink! callable if any has been manually set.
sourcefn is_payable(&self) -> bool
fn is_payable(&self) -> bool
Returns
true
if the ink! callable is flagged as payable. Read moresourcefn has_wildcard_selector(&self) -> bool
fn has_wildcard_selector(&self) -> bool
Returns
true
if the ink! callable is flagged as a wildcard selector.sourcefn visibility(&self) -> Visibility
fn visibility(&self) -> Visibility
Returns the visibility of the ink! callable.
sourcefn inputs(&self) -> InputsIter<'_>ⓘNotable traits for InputsIter<'a>impl<'a> Iterator for InputsIter<'a> type Item = &'a PatType;
fn inputs(&self) -> InputsIter<'_>ⓘNotable traits for InputsIter<'a>impl<'a> Iterator for InputsIter<'a> type Item = &'a PatType;
Returns an iterator yielding all input parameters of the ink! callable.
sourcefn inputs_span(&self) -> Span
fn inputs_span(&self) -> Span
Returns the span of the inputs of the ink! callable.
sourcefn statements(&self) -> &[Stmt]
fn statements(&self) -> &[Stmt]
Returns a slice over shared references to the statements of the callable.
sourceimpl<C> Clone for CallableWithSelector<'_, C>
impl<C> Clone for CallableWithSelector<'_, C>
sourceimpl<'a, C: Debug> Debug for CallableWithSelector<'a, C>
impl<'a, C: Debug> Debug for CallableWithSelector<'a, C>
sourceimpl<'a, C> Deref for CallableWithSelector<'a, C>
impl<'a, C> Deref for CallableWithSelector<'a, C>
impl<C> Copy for CallableWithSelector<'_, C>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more