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