pub struct Constructor { /* private fields */ }
Expand description
An ink! constructor.
Trait Implementations§
Source§impl Clone for Constructor
impl Clone for Constructor
Source§fn clone(&self) -> Constructor
fn clone(&self) -> Constructor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Constructor
impl Debug for Constructor
Source§impl InkEntity for Constructor
impl InkEntity for Constructor
Source§fn can_cast(node: &SyntaxNode) -> bool
fn can_cast(node: &SyntaxNode) -> bool
Returns true if an ink! entity can be derived from the syntax node. Read more
Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Returns an ink! entity if one can be derived for the syntax node. Read more
Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Returns the root syntax node for the ink! entity.
Source§fn ink_attr(&self) -> Option<&InkAttribute>
fn ink_attr(&self) -> Option<&InkAttribute>
Returns the ink! attribute the ink! entity was derived from (if any).
Source§fn item_at_offset(&self, offset: TextSize) -> ItemAtOffset
fn item_at_offset(&self, offset: TextSize) -> ItemAtOffset
Returns a representation of a token in the subtree which covers the position.
Source§impl IsInkCallable for Constructor
impl IsInkCallable for Constructor
Source§fn default_arg(&self) -> Option<InkArg>
fn default_arg(&self) -> Option<InkArg>
Returns the ink!
default
argument (if any).Source§fn payable_arg(&self) -> Option<InkArg>
fn payable_arg(&self) -> Option<InkArg>
Returns the ink!
payable
argument (if any).Source§fn selector_arg(&self) -> Option<SelectorArg>
fn selector_arg(&self) -> Option<SelectorArg>
Returns the ink! selector argument (if any).
Source§impl IsInkFn for Constructor
impl IsInkFn for Constructor
Source§impl PartialEq for Constructor
impl PartialEq for Constructor
impl Eq for Constructor
impl StructuralPartialEq for Constructor
Auto Trait Implementations§
impl Freeze for Constructor
impl !RefUnwindSafe for Constructor
impl !Send for Constructor
impl !Sync for Constructor
impl Unpin for Constructor
impl !UnwindSafe for Constructor
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> HasInkImplParent for Twhere
T: IsInkFn,
impl<T> HasInkImplParent for Twhere
T: IsInkFn,
Source§fn parent_impl_item(&self) -> Option<Impl>
fn parent_impl_item(&self) -> Option<Impl>
Returns the
impl
item (if any) for the ink! entity’s parent item node.