Enum bindgen::FieldVisibilityKind
source · 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<FieldVisibilityKind> for FieldVisibilityKind
impl PartialEq<FieldVisibilityKind> for FieldVisibilityKind
source§fn eq(&self, other: &FieldVisibilityKind) -> bool
fn eq(&self, other: &FieldVisibilityKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<FieldVisibilityKind> for FieldVisibilityKind
impl PartialOrd<FieldVisibilityKind> for FieldVisibilityKind
source§fn partial_cmp(&self, other: &FieldVisibilityKind) -> Option<Ordering>
fn partial_cmp(&self, other: &FieldVisibilityKind) -> 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 moreimpl Copy for FieldVisibilityKind
impl Eq for FieldVisibilityKind
impl StructuralEq for FieldVisibilityKind
impl StructuralPartialEq for FieldVisibilityKind
Auto Trait Implementations§
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