Enum erg_compiler::ty::vis::VisibilityModifier
source · pub enum VisibilityModifier {
Public,
Private,
Restricted(Set<Str>),
SubtypeRestricted(Type),
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for VisibilityModifier
impl Clone for VisibilityModifier
source§fn clone(&self) -> VisibilityModifier
fn clone(&self) -> VisibilityModifier
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 VisibilityModifier
impl Debug for VisibilityModifier
source§impl Display for VisibilityModifier
impl Display for VisibilityModifier
source§impl Hash for VisibilityModifier
impl Hash for VisibilityModifier
source§impl PartialEq<VisibilityModifier> for VisibilityModifier
impl PartialEq<VisibilityModifier> for VisibilityModifier
source§fn eq(&self, other: &VisibilityModifier) -> bool
fn eq(&self, other: &VisibilityModifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VisibilityModifier
impl StructuralEq for VisibilityModifier
impl StructuralPartialEq for VisibilityModifier
Auto Trait Implementations§
impl !RefUnwindSafe for VisibilityModifier
impl !Send for VisibilityModifier
impl !Sync for VisibilityModifier
impl Unpin for VisibilityModifier
impl !UnwindSafe for VisibilityModifier
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