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<C> Callable for CallableWithSelector<'_, C>where
C: Callable,
impl<C> Callable for CallableWithSelector<'_, 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 is_default(&self) -> bool
fn is_default(&self) -> bool
Returns
true
if the ink! callable is flagged as default. 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 has_wildcard_complement_selector(&self) -> bool
fn has_wildcard_complement_selector(&self) -> bool
Returns
true
if the ink! callable is flagged as a wildcard complement 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.
Source§impl<C> Clone for CallableWithSelector<'_, C>
impl<C> Clone for CallableWithSelector<'_, C>
Source§impl<'a, C: Debug> Debug for CallableWithSelector<'a, C>
impl<'a, C: Debug> Debug for CallableWithSelector<'a, C>
Source§impl<C> Deref for CallableWithSelector<'_, C>
impl<C> Deref for CallableWithSelector<'_, C>
impl<C> Copy for CallableWithSelector<'_, C>
Auto Trait Implementations§
impl<'a, C> Freeze for CallableWithSelector<'a, C>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more