Struct ink_ir::CallableWithSelector
source · pub struct CallableWithSelector<'a, C> { /* private fields */ }
Expand description
Wrapper for a callable that adds its composed selector.
Implementations§
source§impl<'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§
source§impl<'a, C> Callable for CallableWithSelector<'a, C>where
C: Callable,
impl<'a, C> Callable for CallableWithSelector<'a, C>where
C: Callable,
source§fn kind(&self) -> CallableKind
fn kind(&self) -> CallableKind
Returns the kind of the ink! callable.
source§fn 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.
source§fn is_payable(&self) -> bool
fn is_payable(&self) -> bool
Returns
true
if the ink! callable is flagged as payable. Read moresource§fn has_wildcard_selector(&self) -> bool
fn has_wildcard_selector(&self) -> bool
Returns
true
if the ink! callable is flagged as a wildcard selector.source§fn visibility(&self) -> Visibility
fn visibility(&self) -> Visibility
Returns the visibility of the ink! callable.
source§fn inputs(&self) -> InputsIter<'_> ⓘ
fn inputs(&self) -> InputsIter<'_> ⓘ
Returns an iterator yielding all input parameters of the ink! callable.
source§fn inputs_span(&self) -> Span
fn inputs_span(&self) -> Span
Returns the span of the inputs of the ink! callable.
source§fn statements(&self) -> &[Stmt]
fn statements(&self) -> &[Stmt]
Returns a slice over shared references to the statements of the callable.