Struct cradle::Stdin [−][src]
Expand description
See the CmdArgument
implementation for Stdin
below.
Trait Implementations
Writes the given &str
to the child’s standard input.
If Stdin
is used multiple times,
all given strings will be written to the child’s standard input in order.
use cradle::*; let StdoutUntrimmed(output) = cmd!("sort", Stdin("foo\nbar\n")); assert_eq!(output, "bar\nfoo\n");
Auto Trait Implementations
impl<T> RefUnwindSafe for Stdin<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Stdin<T> where
T: UnwindSafe,