pub struct ReplaceDirective {
pub old_path: String,
pub old_version: Option<String>,
pub new_path: String,
pub new_version: Option<String>,
}Expand description
One replace directive: old[@version] => new[@version]. Carried
for audit/provenance; go list already resolves the effect (it
points a replaced package’s Dir at the replacement).
Fields§
§old_path: String§old_version: Option<String>§new_path: String§new_version: Option<String>Trait Implementations§
Source§impl Clone for ReplaceDirective
impl Clone for ReplaceDirective
Source§fn clone(&self) -> ReplaceDirective
fn clone(&self) -> ReplaceDirective
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 ReplaceDirective
impl Debug for ReplaceDirective
impl Eq for ReplaceDirective
Source§impl PartialEq for ReplaceDirective
impl PartialEq for ReplaceDirective
impl StructuralPartialEq for ReplaceDirective
Auto Trait Implementations§
impl Freeze for ReplaceDirective
impl RefUnwindSafe for ReplaceDirective
impl Send for ReplaceDirective
impl Sync for ReplaceDirective
impl Unpin for ReplaceDirective
impl UnsafeUnpin for ReplaceDirective
impl UnwindSafe for ReplaceDirective
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.