pub struct GoModToolchainDirective { /* private fields */ }Expand description
toolchain directive metadata.
Implementations§
Source§impl GoModToolchainDirective
impl GoModToolchainDirective
Sourcepub const fn new(version: GoToolchainVersion) -> GoModToolchainDirective
pub const fn new(version: GoToolchainVersion) -> GoModToolchainDirective
Creates a toolchain directive.
Sourcepub const fn version(self) -> GoToolchainVersion
pub const fn version(self) -> GoToolchainVersion
Returns the toolchain version.
Trait Implementations§
Source§impl Clone for GoModToolchainDirective
impl Clone for GoModToolchainDirective
Source§fn clone(&self) -> GoModToolchainDirective
fn clone(&self) -> GoModToolchainDirective
Returns a duplicate of the value. Read more
1.0.0 · 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 GoModToolchainDirective
impl Debug for GoModToolchainDirective
Source§impl PartialEq for GoModToolchainDirective
impl PartialEq for GoModToolchainDirective
impl Copy for GoModToolchainDirective
impl Eq for GoModToolchainDirective
impl StructuralPartialEq for GoModToolchainDirective
Auto Trait Implementations§
impl Freeze for GoModToolchainDirective
impl RefUnwindSafe for GoModToolchainDirective
impl Send for GoModToolchainDirective
impl Sync for GoModToolchainDirective
impl Unpin for GoModToolchainDirective
impl UnsafeUnpin for GoModToolchainDirective
impl UnwindSafe for GoModToolchainDirective
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