pub struct GoModFile { /* private fields */ }Expand description
Lightweight go.mod file metadata.
Implementations§
Source§impl GoModFile
impl GoModFile
Sourcepub fn with_directive(self, directive: GoModDirective) -> Self
pub fn with_directive(self, directive: GoModDirective) -> Self
Adds a directive and returns the updated metadata.
Sourcepub fn directives(&self) -> &[GoModDirective]
pub fn directives(&self) -> &[GoModDirective]
Returns the directives.
Trait Implementations§
impl Eq for GoModFile
impl StructuralPartialEq for GoModFile
Auto Trait Implementations§
impl Freeze for GoModFile
impl RefUnwindSafe for GoModFile
impl Send for GoModFile
impl Sync for GoModFile
impl Unpin for GoModFile
impl UnsafeUnpin for GoModFile
impl UnwindSafe for GoModFile
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