pub trait FromSource<T> {
// Required method
fn from_source(source: T) -> Self;
}Expand description
Trait for converting a source type into an input redirection.
Implemented on [InputRedirection] for each type accepted by
Exec::stdin and Pipeline::stdin.
Required Methods§
Sourcefn from_source(source: T) -> Self
fn from_source(source: T) -> Self
Create the input redirection from the given source.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.