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