pub enum OutputFile {
Null,
Stdout,
Stderr,
File {
path: PathBuf,
init: bool,
},
}
Expand description
Possible choices for output streams. Used by the -o
option to the compiler.
- “-” and “
” are treated as stdout. - “
” is treated as stderr. - “
” is treated as a null output stream. - All other strings are treated as file paths.
Variants§
Implementations§
Source§impl OutputFile
impl OutputFile
Trait Implementations§
Source§impl Clone for OutputFile
impl Clone for OutputFile
Source§fn clone(&self) -> OutputFile
fn clone(&self) -> OutputFile
Returns a copy 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 OutputFile
impl Debug for OutputFile
Source§impl Display for OutputFile
impl Display for OutputFile
Auto Trait Implementations§
impl Freeze for OutputFile
impl RefUnwindSafe for OutputFile
impl Send for OutputFile
impl Sync for OutputFile
impl Unpin for OutputFile
impl UnwindSafe for OutputFile
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<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