Access Levels

Access LevelElements
Unrestricted — Any code that can see the element can access it.
  • Class
  • Constructor
  • Destructor
  • Enum
  • Event
  • Method
  • Property
  • Struct
  • Struct member
  • Trait
  • Unit
Declaration context — Code within the enclosing type can access the element.
  • Class member variable
  • Const
  • Function
  • Sub