pub enum Subject {
ReservedSelf,
Identifier(Identifier),
}
Expand description
Corresponds to the field subject
in the grammar rule name
.
Variants§
ReservedSelf
Corresponds to the grammar rule reserved_self
, or the keyword self
.
Identifier(Identifier)
Implementations§
Source§impl Subject
impl Subject
pub const fn is_reserved_self(&self) -> bool
pub const fn is_identifier(&self) -> bool
pub const fn as_identifier(&self) -> Option<&Identifier>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Subject
impl<'de> Deserialize<'de> for Subject
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 From<&Identifier> for Subject
impl From<&Identifier> for Subject
Source§fn from(v: &Identifier) -> Self
fn from(v: &Identifier) -> Self
Converts to this type from the input type.
Source§impl From<Identifier> for Subject
impl From<Identifier> for Subject
Source§fn from(v: Identifier) -> Self
fn from(v: Identifier) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Subject
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnwindSafe for Subject
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