pub enum FieldVisibilityKind {
Private,
PublicCrate,
Public,
}
Expand description
What kind of visibility modifer should be used for a struct or field?
Variants§
Private
Fields are marked as private, i.e., struct Foo {bar: bool}
PublicCrate
Fields are marked as crate public, i.e., struct Foo {pub(crate) bar: bool}
Public
Fields are marked as public, i.e., struct Foo {pub bar: bool}
Trait Implementations§
source§impl Clone for FieldVisibilityKind
impl Clone for FieldVisibilityKind
source§fn clone(&self) -> FieldVisibilityKind
fn clone(&self) -> FieldVisibilityKind
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 FieldVisibilityKind
impl Debug for FieldVisibilityKind
source§impl Default for FieldVisibilityKind
impl Default for FieldVisibilityKind
source§impl Display for FieldVisibilityKind
impl Display for FieldVisibilityKind
source§impl FromStr for FieldVisibilityKind
impl FromStr for FieldVisibilityKind
source§impl Ord for FieldVisibilityKind
impl Ord for FieldVisibilityKind
source§fn cmp(&self, other: &FieldVisibilityKind) -> Ordering
fn cmp(&self, other: &FieldVisibilityKind) -> Ordering
1.21.0 · 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
source§impl PartialEq for FieldVisibilityKind
impl PartialEq for FieldVisibilityKind
source§impl PartialOrd for FieldVisibilityKind
impl PartialOrd for FieldVisibilityKind
impl Copy for FieldVisibilityKind
impl Eq for FieldVisibilityKind
impl StructuralPartialEq for FieldVisibilityKind
Auto Trait Implementations§
impl Freeze for FieldVisibilityKind
impl RefUnwindSafe for FieldVisibilityKind
impl Send for FieldVisibilityKind
impl Sync for FieldVisibilityKind
impl Unpin for FieldVisibilityKind
impl UnwindSafe for FieldVisibilityKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more