Enum move_model::model::FunctionVisibility
pub enum FunctionVisibility {
Private,
Public,
Script,
Friend,
}
Expand description
Visibility
restricts the accessibility of the associated entity.
- For function visibility, it restricts who may call into the associated function.
Variants§
Private
Accessible within its defining module only.
Public
Accessible by any module or script outside of its declaring module.
Script
Accessible by any script or other Script
functions from any module
Friend
Accessible by this module as well as modules declared in the friend list.
Trait Implementations§
§impl Arbitrary for Visibility
impl Arbitrary for Visibility
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = TupleUnion<((u32, Arc<fn() -> Visibility>), (u32, Arc<fn() -> Visibility>), (u32, Arc<fn() -> Visibility>), (u32, Arc<fn() -> Visibility>))>
type Strategy = TupleUnion<((u32, Arc<fn() -> Visibility>), (u32, Arc<fn() -> Visibility>), (u32, Arc<fn() -> Visibility>), (u32, Arc<fn() -> Visibility>))>
The type of
Strategy
used to generate values of type Self
.§fn arbitrary_with(
_top: <Visibility as Arbitrary>::Parameters
) -> <Visibility as Arbitrary>::Strategy
fn arbitrary_with( _top: <Visibility as Arbitrary>::Parameters ) -> <Visibility as Arbitrary>::Strategy
§impl Clone for Visibility
impl Clone for Visibility
§fn clone(&self) -> Visibility
fn clone(&self) -> Visibility
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 more§impl Debug for Visibility
impl Debug for Visibility
§impl Default for Visibility
impl Default for Visibility
§fn default() -> Visibility
fn default() -> Visibility
Returns the “default value” for a type. Read more
§impl Ord for Visibility
impl Ord for Visibility
§impl PartialEq<Visibility> for Visibility
impl PartialEq<Visibility> for Visibility
§fn eq(&self, other: &Visibility) -> bool
fn eq(&self, other: &Visibility) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<Visibility> for Visibility
impl PartialOrd<Visibility> for Visibility
§fn partial_cmp(&self, other: &Visibility) -> Option<Ordering>
fn partial_cmp(&self, other: &Visibility) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl TryFrom<u8> for Visibility
impl TryFrom<u8> for Visibility
impl Copy for Visibility
impl Eq for Visibility
impl StructuralEq for Visibility
impl StructuralPartialEq for Visibility
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.