#[repr(u8)]pub enum ItemVis {
Public = 0,
Crate = 1,
Restricted = 2,
Private = 3,
}Expand description
Visibility level matching DefEntry.visibility (0 = Public, 1 = Crate, 2 = Restricted, 3 = Private).
Variants§
Public = 0
pub: visible everywhere including downstream crates.
Crate = 1
pub(crate): visible throughout the defining crate.
Restricted = 2
pub(super) / pub(in ancestor): visible in an ancestor module within the defining crate.
Private = 3
Private to the enclosing module.
Implementations§
Trait Implementations§
impl Copy for ItemVis
impl Eq for ItemVis
Source§impl Ord for ItemVis
impl Ord for ItemVis
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ItemVis
impl PartialOrd for ItemVis
impl StructuralPartialEq for ItemVis
Auto Trait Implementations§
impl Forget for ItemVis
impl Freeze for ItemVis
impl Move for ItemVis
impl RefUnwindSafe for ItemVis
impl Send for ItemVis
impl Sync for ItemVis
impl Unpin for ItemVis
impl UnsafeUnpin for ItemVis
impl UnwindSafe for ItemVis
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