pub enum GoReservedWord {
Keyword(GoKeyword),
PredeclaredIdentifier(GoPredeclaredIdentifier),
}Expand description
Go reserved vocabulary: keywords plus common predeclared identifiers.
Variants§
Keyword(GoKeyword)
PredeclaredIdentifier(GoPredeclaredIdentifier)
Implementations§
Trait Implementations§
Source§impl Clone for GoReservedWord
impl Clone for GoReservedWord
Source§fn clone(&self) -> GoReservedWord
fn clone(&self) -> GoReservedWord
Returns a duplicate 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 GoReservedWord
impl Debug for GoReservedWord
Source§impl Display for GoReservedWord
impl Display for GoReservedWord
Source§impl FromStr for GoReservedWord
impl FromStr for GoReservedWord
Source§impl Hash for GoReservedWord
impl Hash for GoReservedWord
Source§impl Ord for GoReservedWord
impl Ord for GoReservedWord
Source§fn cmp(&self, other: &GoReservedWord) -> Ordering
fn cmp(&self, other: &GoReservedWord) -> 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 for GoReservedWord
impl PartialEq for GoReservedWord
Source§impl PartialOrd for GoReservedWord
impl PartialOrd for GoReservedWord
impl Copy for GoReservedWord
impl Eq for GoReservedWord
impl StructuralPartialEq for GoReservedWord
Auto Trait Implementations§
impl Freeze for GoReservedWord
impl RefUnwindSafe for GoReservedWord
impl Send for GoReservedWord
impl Sync for GoReservedWord
impl Unpin for GoReservedWord
impl UnsafeUnpin for GoReservedWord
impl UnwindSafe for GoReservedWord
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