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