Enum move_ir_types::ast::FunctionVisibility
source · pub enum FunctionVisibility {
Public,
Script,
Friend,
Internal,
}
Expand description
Public or internal modifier for a procedure
Variants§
Public
The procedure can be invoked anywhere
public
Script
The procedure can only be invoked from a script context
public(script)
Friend
The procedure can be invoked internally as well as by modules in the friend list
public(friend)
Internal
The procedure can be invoked only internally
<no modifier>
Trait Implementations§
source§impl Clone for FunctionVisibility
impl Clone for FunctionVisibility
source§fn clone(&self) -> FunctionVisibility
fn clone(&self) -> FunctionVisibility
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 FunctionVisibility
impl Debug for FunctionVisibility
source§impl PartialEq<FunctionVisibility> for FunctionVisibility
impl PartialEq<FunctionVisibility> for FunctionVisibility
source§fn eq(&self, other: &FunctionVisibility) -> bool
fn eq(&self, other: &FunctionVisibility) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.