#[repr(C, u8)]pub enum Modifier {
Static(Keyword),
Final(Keyword),
Abstract(Keyword),
Readonly(Keyword),
Public(Keyword),
PublicSet(Keyword),
Protected(Keyword),
ProtectedSet(Keyword),
Private(Keyword),
PrivateSet(Keyword),
}Expand description
Variants§
Static(Keyword)
Final(Keyword)
Abstract(Keyword)
Readonly(Keyword)
Public(Keyword)
PublicSet(Keyword)
Protected(Keyword)
ProtectedSet(Keyword)
Private(Keyword)
PrivateSet(Keyword)
Implementations§
Source§impl Modifier
impl Modifier
pub fn get_keyword(&self) -> &Keyword
Sourcepub fn is_visibility(&self) -> bool
pub fn is_visibility(&self) -> bool
Returns true if the modifier is a visibility modifier.
Sourcepub fn is_read_visibility(&self) -> bool
pub fn is_read_visibility(&self) -> bool
Returns true if the modifier is a read visibility modifier.
Sourcepub fn is_write_visibility(&self) -> bool
pub fn is_write_visibility(&self) -> bool
Returns true if the modifier is a write visibility modifier.
pub const fn is_static(&self) -> bool
pub const fn is_final(&self) -> bool
pub const fn is_abstract(&self) -> bool
pub const fn is_readonly(&self) -> bool
pub const fn is_public(&self) -> bool
pub const fn is_protected(&self) -> bool
pub const fn is_private(&self) -> bool
pub const fn is_public_set(&self) -> bool
pub const fn is_protected_set(&self) -> bool
pub const fn is_private_set(&self) -> bool
pub fn as_str<'a>(&self, interner: &'a ThreadedInterner) -> &'a str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Modifier
impl<'de> Deserialize<'de> for Modifier
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Modifier
impl Ord for Modifier
Source§impl PartialOrd for Modifier
impl PartialOrd for Modifier
impl Eq for Modifier
impl StructuralPartialEq for Modifier
Auto Trait Implementations§
impl Freeze for Modifier
impl RefUnwindSafe for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl UnwindSafe for Modifier
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> HasPosition for Twhere
T: HasSpan,
impl<T> HasPosition for Twhere
T: HasSpan,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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