pub enum GoModuleDirectiveKind {
Module,
Go,
Toolchain,
Require,
Replace,
Exclude,
Retract,
}Expand description
Go module directive kind metadata.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for GoModuleDirectiveKind
impl Clone for GoModuleDirectiveKind
Source§fn clone(&self) -> GoModuleDirectiveKind
fn clone(&self) -> GoModuleDirectiveKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GoModuleDirectiveKind
impl Debug for GoModuleDirectiveKind
Source§impl Display for GoModuleDirectiveKind
impl Display for GoModuleDirectiveKind
Source§impl FromStr for GoModuleDirectiveKind
impl FromStr for GoModuleDirectiveKind
Source§impl Hash for GoModuleDirectiveKind
impl Hash for GoModuleDirectiveKind
Source§impl Ord for GoModuleDirectiveKind
impl Ord for GoModuleDirectiveKind
Source§fn cmp(&self, other: &GoModuleDirectiveKind) -> Ordering
fn cmp(&self, other: &GoModuleDirectiveKind) -> Ordering
1.21.0 (const: unstable) · 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 GoModuleDirectiveKind
impl PartialEq for GoModuleDirectiveKind
Source§fn eq(&self, other: &GoModuleDirectiveKind) -> bool
fn eq(&self, other: &GoModuleDirectiveKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§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