pub enum OutputStream {
Stdout,
Stderr,
}Expand description
Variants§
Implementations§
Source§impl OutputStream
impl OutputStream
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Returns a lowercase stream name for diagnostics.
§Returns
"stdout" for Self::Stdout and "stderr" for Self::Stderr.
Trait Implementations§
Source§impl Clone for OutputStream
impl Clone for OutputStream
Source§fn clone(&self) -> OutputStream
fn clone(&self) -> OutputStream
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 OutputStream
impl Debug for OutputStream
Source§impl Display for OutputStream
impl Display for OutputStream
Source§impl PartialEq for OutputStream
impl PartialEq for OutputStream
impl Copy for OutputStream
impl Eq for OutputStream
impl StructuralPartialEq for OutputStream
Auto Trait Implementations§
impl Freeze for OutputStream
impl RefUnwindSafe for OutputStream
impl Send for OutputStream
impl Sync for OutputStream
impl Unpin for OutputStream
impl UnsafeUnpin for OutputStream
impl UnwindSafe for OutputStream
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