Enum GoReservedWord
pub enum GoReservedWord {
Keyword(GoKeyword),
PredeclaredIdentifier(GoPredeclaredIdentifier),
}Expand description
Go reserved vocabulary: keywords plus common predeclared identifiers.
Variants§
Keyword(GoKeyword)
PredeclaredIdentifier(GoPredeclaredIdentifier)
Implementations§
§impl GoReservedWord
impl GoReservedWord
Trait Implementations§
§impl Clone for GoReservedWord
impl Clone for GoReservedWord
§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 more§impl Debug for GoReservedWord
impl Debug for GoReservedWord
§impl Display for GoReservedWord
impl Display for GoReservedWord
§impl FromStr for GoReservedWord
impl FromStr for GoReservedWord
§type Err = GoKeywordParseError
type Err = GoKeywordParseError
The associated error which can be returned from parsing.
§fn from_str(
input: &str,
) -> Result<GoReservedWord, <GoReservedWord as FromStr>::Err>
fn from_str( input: &str, ) -> Result<GoReservedWord, <GoReservedWord as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for GoReservedWord
impl Hash for GoReservedWord
§impl Ord for GoReservedWord
impl Ord for GoReservedWord
§impl PartialEq for GoReservedWord
impl PartialEq for GoReservedWord
§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