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