pub struct GoModExcludeDirective { /* private fields */ }Expand description
exclude directive metadata.
Implementations§
Source§impl GoModExcludeDirective
impl GoModExcludeDirective
Sourcepub const fn new(path: GoModulePath, version: GoModuleVersion) -> Self
pub const fn new(path: GoModulePath, version: GoModuleVersion) -> Self
Creates an exclude directive.
Sourcepub const fn path(&self) -> &GoModulePath
pub const fn path(&self) -> &GoModulePath
Returns the module path.
Sourcepub const fn version(&self) -> &GoModuleVersion
pub const fn version(&self) -> &GoModuleVersion
Returns the module version.
Trait Implementations§
Source§impl Clone for GoModExcludeDirective
impl Clone for GoModExcludeDirective
Source§fn clone(&self) -> GoModExcludeDirective
fn clone(&self) -> GoModExcludeDirective
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 GoModExcludeDirective
impl Debug for GoModExcludeDirective
Source§impl PartialEq for GoModExcludeDirective
impl PartialEq for GoModExcludeDirective
Source§fn eq(&self, other: &GoModExcludeDirective) -> bool
fn eq(&self, other: &GoModExcludeDirective) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GoModExcludeDirective
impl StructuralPartialEq for GoModExcludeDirective
Auto Trait Implementations§
impl Freeze for GoModExcludeDirective
impl RefUnwindSafe for GoModExcludeDirective
impl Send for GoModExcludeDirective
impl Sync for GoModExcludeDirective
impl Unpin for GoModExcludeDirective
impl UnsafeUnpin for GoModExcludeDirective
impl UnwindSafe for GoModExcludeDirective
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