Enum GoModuleDirectiveKind
pub enum GoModuleDirectiveKind {
Module,
Go,
Toolchain,
Require,
Replace,
Exclude,
Retract,
}Expand description
Go module directive kind metadata.
Variants§
Implementations§
Trait Implementations§
§impl Clone for GoModuleDirectiveKind
impl Clone for GoModuleDirectiveKind
§fn clone(&self) -> GoModuleDirectiveKind
fn clone(&self) -> GoModuleDirectiveKind
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 GoModuleDirectiveKind
impl Debug for GoModuleDirectiveKind
§impl Display for GoModuleDirectiveKind
impl Display for GoModuleDirectiveKind
§impl FromStr for GoModuleDirectiveKind
impl FromStr for GoModuleDirectiveKind
§type Err = GoModuleError
type Err = GoModuleError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<GoModuleDirectiveKind, <GoModuleDirectiveKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<GoModuleDirectiveKind, <GoModuleDirectiveKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for GoModuleDirectiveKind
impl Hash for GoModuleDirectiveKind
§impl Ord for GoModuleDirectiveKind
impl Ord for GoModuleDirectiveKind
§fn cmp(&self, other: &GoModuleDirectiveKind) -> Ordering
fn cmp(&self, other: &GoModuleDirectiveKind) -> 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
§impl PartialEq for GoModuleDirectiveKind
impl PartialEq for GoModuleDirectiveKind
§impl PartialOrd for GoModuleDirectiveKind
impl PartialOrd for GoModuleDirectiveKind
impl Copy for GoModuleDirectiveKind
impl Eq for GoModuleDirectiveKind
impl StructuralPartialEq for GoModuleDirectiveKind
Auto Trait Implementations§
impl Freeze for GoModuleDirectiveKind
impl RefUnwindSafe for GoModuleDirectiveKind
impl Send for GoModuleDirectiveKind
impl Sync for GoModuleDirectiveKind
impl Unpin for GoModuleDirectiveKind
impl UnsafeUnpin for GoModuleDirectiveKind
impl UnwindSafe for GoModuleDirectiveKind
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