pub enum ModifierKind {
VisibilityPublic,
InstanceAccess,
}Variants§
VisibilityPublic
mewfor public visibility.
InstanceAccess
Represents that a function is non-static in an enum or class
Implementations§
Source§impl ModifierKind
impl ModifierKind
pub fn is_visibility_public(&self) -> bool
pub fn is_not_visibility_public(&self) -> bool
pub fn and_visibility_public(self, and: Self) -> Self
pub fn or_visibility_public(self, or: Self) -> Self
pub fn is_instance_access(&self) -> bool
pub fn is_not_instance_access(&self) -> bool
pub fn and_instance_access(self, and: Self) -> Self
pub fn or_instance_access(self, or: Self) -> Self
Source§impl ModifierKind
impl ModifierKind
pub const fn as_token_repr(&self) -> &'static str
pub const fn from_token_repr(text: &str) -> Option<Self>
Trait Implementations§
Source§impl Clone for ModifierKind
impl Clone for ModifierKind
impl Copy for ModifierKind
Source§impl Debug for ModifierKind
impl Debug for ModifierKind
impl Eq for ModifierKind
Source§impl Hash for ModifierKind
impl Hash for ModifierKind
Source§impl Ord for ModifierKind
impl Ord for ModifierKind
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 PartialEq for ModifierKind
impl PartialEq for ModifierKind
Source§impl PartialOrd for ModifierKind
impl PartialOrd for ModifierKind
impl StructuralPartialEq for ModifierKind
Auto Trait Implementations§
impl Freeze for ModifierKind
impl RefUnwindSafe for ModifierKind
impl Send for ModifierKind
impl Sync for ModifierKind
impl Unpin for ModifierKind
impl UnsafeUnpin for ModifierKind
impl UnwindSafe for ModifierKind
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§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