Struct cradle::output::StdoutUntrimmed
source · [−]pub struct StdoutUntrimmed(pub String);
Expand description
Same as StdoutTrimmed
, but does not trim whitespace from the output:
use cradle::prelude::*;
let StdoutUntrimmed(output) = run_output!(%"echo foo");
assert_eq!(output, "foo\n");
Tuple Fields
0: String
Trait Implementations
sourceimpl Clone for StdoutUntrimmed
impl Clone for StdoutUntrimmed
sourcefn clone(&self) -> StdoutUntrimmed
fn clone(&self) -> StdoutUntrimmed
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StdoutUntrimmed
impl Debug for StdoutUntrimmed
sourceimpl Output for StdoutUntrimmed
impl Output for StdoutUntrimmed
sourcefn from_child_output(
config: &Config,
result: &ChildOutput
) -> Result<Self, Error>
fn from_child_output(
config: &Config,
result: &ChildOutput
) -> Result<Self, Error>
Converts ChildOutput
s
from running a child process into values of the Output
type.
This is an internal function that should be ignored. Read more
sourceimpl PartialEq<StdoutUntrimmed> for StdoutUntrimmed
impl PartialEq<StdoutUntrimmed> for StdoutUntrimmed
sourcefn eq(&self, other: &StdoutUntrimmed) -> bool
fn eq(&self, other: &StdoutUntrimmed) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StdoutUntrimmed) -> bool
fn ne(&self, other: &StdoutUntrimmed) -> bool
This method tests for !=
.
impl StructuralPartialEq for StdoutUntrimmed
Auto Trait Implementations
impl RefUnwindSafe for StdoutUntrimmed
impl Send for StdoutUntrimmed
impl Sync for StdoutUntrimmed
impl Unpin for StdoutUntrimmed
impl UnwindSafe for StdoutUntrimmed
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more