pub struct GoWorkFile { /* private fields */ }Expand description
Lightweight go.work file metadata.
Implementations§
Source§impl GoWorkFile
impl GoWorkFile
Sourcepub fn with_directive(self, directive: GoWorkDirective) -> Self
pub fn with_directive(self, directive: GoWorkDirective) -> Self
Adds a directive and returns the updated metadata.
Sourcepub fn directives(&self) -> &[GoWorkDirective]
pub fn directives(&self) -> &[GoWorkDirective]
Returns the directives.
Trait Implementations§
Source§impl Clone for GoWorkFile
impl Clone for GoWorkFile
Source§fn clone(&self) -> GoWorkFile
fn clone(&self) -> GoWorkFile
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 GoWorkFile
impl Debug for GoWorkFile
Source§impl Default for GoWorkFile
impl Default for GoWorkFile
Source§fn default() -> GoWorkFile
fn default() -> GoWorkFile
Returns the “default value” for a type. Read more
Source§impl PartialEq for GoWorkFile
impl PartialEq for GoWorkFile
Source§fn eq(&self, other: &GoWorkFile) -> bool
fn eq(&self, other: &GoWorkFile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GoWorkFile
impl StructuralPartialEq for GoWorkFile
Auto Trait Implementations§
impl Freeze for GoWorkFile
impl RefUnwindSafe for GoWorkFile
impl Send for GoWorkFile
impl Sync for GoWorkFile
impl Unpin for GoWorkFile
impl UnsafeUnpin for GoWorkFile
impl UnwindSafe for GoWorkFile
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