#[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 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