pub struct Input<'a> { /* private fields */ }
Implementations
sourceimpl<'a> Input<'a>
impl<'a> Input<'a>
pub fn ordinary_file(path: impl AsRef<Path>) -> Self
pub fn stdin() -> Self
pub fn from_reader(reader: Box<dyn Read + 'a>) -> Self
pub fn is_stdin(&self) -> bool
pub fn with_name(self, provided_name: Option<impl AsRef<Path>>) -> Self
pub fn description(&self) -> &InputDescription
pub fn description_mut(&mut self) -> &mut InputDescription
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Input<'a>
impl<'a> !Send for Input<'a>
impl<'a> !Sync for Input<'a>
impl<'a> Unpin for Input<'a>
impl<'a> !UnwindSafe for Input<'a>
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