Struct ink_analyzer_ir::Constructor
source · 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 FromInkAttribute for Constructor
impl FromInkAttribute for Constructor
source§fn ink_attr(&self) -> &InkAttribute
fn ink_attr(&self) -> &InkAttribute
Returns the ink! attribute the ink! entity was derived from.
source§fn can_cast(attr: &InkAttribute) -> bool
fn can_cast(attr: &InkAttribute) -> bool
Returns true if the ink! entity can be derived for the ink! attribute.
source§fn cast(attr: InkAttribute) -> Option<Self>
fn cast(attr: InkAttribute) -> Option<Self>
Returns an ink! entity if one can be derived for the ink! attribute.
source§impl FromSyntax for Constructor
impl FromSyntax for Constructor
source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Returns the syntax node for the ink! entity.
source§impl IsInkCallable for Constructor
impl IsInkCallable for Constructor
source§fn payable_arg(&self) -> Option<InkArg>
fn payable_arg(&self) -> Option<InkArg>
Returns the ink! payable argument (if any) for the ink! callable entity.
source§fn selector_arg(&self) -> Option<SelectorArg>
fn selector_arg(&self) -> Option<SelectorArg>
Returns the ink! selector argument (if any) for the ink! callable entity.
source§fn default_arg(&self) -> Option<InkArg>
fn default_arg(&self) -> Option<InkArg>
Returns the ink! default argument (if any) for the ink! callable entity.
source§impl IsInkFn for Constructor
impl IsInkFn for Constructor
source§impl PartialEq for Constructor
impl PartialEq for Constructor
source§fn eq(&self, other: &Constructor) -> bool
fn eq(&self, other: &Constructor) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for Constructor
impl StructuralEq for Constructor
impl StructuralPartialEq for Constructor
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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> IsInkEntity for Twhere
T: FromSyntax,
impl<T> IsInkEntity for Twhere
T: FromSyntax,
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.