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