Enum ink_lang_ir::Visibility [−][src]
pub enum Visibility {
Public(VisPublic),
Inherited,
}
Expand description
The visibility of an ink! message or constructor.
Variants
Public(VisPublic)
Tuple Fields
0: VisPublic
Inherited
Implementations
Returns true
if the visibility of the ink! message of constructor is public (pub
).
Note
Messages in normal implementation blocks must have public visibility.
Returns true
if the visibility of the ink! message of constructor is inherited.
Note
Messages in trait implementation blocks must have inherited visibility.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Visibility
impl !Send for Visibility
impl !Sync for Visibility
impl Unpin for Visibility
impl UnwindSafe for Visibility
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more