pub struct OutputTarget {
pub path: PathBuf,
pub existing: ExistingOutput,
}Expand description
Where an output goes and what it does with a file already there.
Fields§
§path: PathBufThe output’s final path.
existing: ExistingOutputWhat happens to a file already at path.
Implementations§
Source§impl OutputTarget
impl OutputTarget
Sourcepub fn replacing(path: impl Into<PathBuf>) -> OutputTarget
pub fn replacing(path: impl Into<PathBuf>) -> OutputTarget
path, replacing a regular file there.
Trait Implementations§
Source§impl Clone for OutputTarget
impl Clone for OutputTarget
Source§fn clone(&self) -> OutputTarget
fn clone(&self) -> OutputTarget
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 OutputTarget
impl Debug for OutputTarget
impl Eq for OutputTarget
Source§impl From<&OutputTarget> for OutputTarget
impl From<&OutputTarget> for OutputTarget
Source§fn from(target: &OutputTarget) -> OutputTarget
fn from(target: &OutputTarget) -> OutputTarget
Converts to this type from the input type.
Source§impl From<&Path> for OutputTarget
impl From<&Path> for OutputTarget
Source§fn from(path: &Path) -> OutputTarget
fn from(path: &Path) -> OutputTarget
Converts to this type from the input type.
Source§impl From<&PathBuf> for OutputTarget
impl From<&PathBuf> for OutputTarget
Source§fn from(path: &PathBuf) -> OutputTarget
fn from(path: &PathBuf) -> OutputTarget
Converts to this type from the input type.
Source§impl From<&String> for OutputTarget
impl From<&String> for OutputTarget
Source§fn from(path: &String) -> OutputTarget
fn from(path: &String) -> OutputTarget
Converts to this type from the input type.
Source§impl From<&str> for OutputTarget
impl From<&str> for OutputTarget
Source§fn from(path: &str) -> OutputTarget
fn from(path: &str) -> OutputTarget
Converts to this type from the input type.
Source§impl From<PathBuf> for OutputTarget
impl From<PathBuf> for OutputTarget
Source§fn from(path: PathBuf) -> OutputTarget
fn from(path: PathBuf) -> OutputTarget
Converts to this type from the input type.
Source§impl From<String> for OutputTarget
impl From<String> for OutputTarget
Source§fn from(path: String) -> OutputTarget
fn from(path: String) -> OutputTarget
Converts to this type from the input type.
Source§impl PartialEq for OutputTarget
impl PartialEq for OutputTarget
impl StructuralPartialEq for OutputTarget
Auto Trait Implementations§
impl Forget for OutputTarget
impl Freeze for OutputTarget
impl Move for OutputTarget
impl RefUnwindSafe for OutputTarget
impl Send for OutputTargetwhere
RawVecInner: Send,
impl Sync for OutputTargetwhere
RawVecInner: Sync,
impl Unpin for OutputTarget
impl UnsafeUnpin for OutputTarget
impl UnwindSafe for OutputTargetwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more