pub struct ContractRef { /* private fields */ }Expand description
An ink! contract ref.
Implementations§
Trait Implementations§
Source§impl Clone for ContractRef
 
impl Clone for ContractRef
Source§fn clone(&self) -> ContractRef
 
fn clone(&self) -> ContractRef
Returns a duplicate 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 ContractRef
 
impl Debug for ContractRef
Source§impl HasInkEnvironment for ContractRef
 
impl HasInkEnvironment for ContractRef
const ENV_ARG_KIND: InkArgKind = crate::InkArgKind::Env
Source§fn environment(&self) -> Option<Environment>
 
fn environment(&self) -> Option<Environment>
Returns the ink! environment (if any).
Source§impl InkEntity for ContractRef
 
impl InkEntity for ContractRef
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 IsInkTrait for ContractRef
 
impl IsInkTrait for ContractRef
Source§fn trait_item(&self) -> Option<&Trait>
 
fn trait_item(&self) -> Option<&Trait>
Returns the 
trait item (if any).Source§impl PartialEq for ContractRef
 
impl PartialEq for ContractRef
impl Eq for ContractRef
impl StructuralPartialEq for ContractRef
Auto Trait Implementations§
impl Freeze for ContractRef
impl !RefUnwindSafe for ContractRef
impl !Send for ContractRef
impl !Sync for ContractRef
impl Unpin for ContractRef
impl !UnwindSafe for ContractRef
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