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