[][src]Struct bat::input::Input

pub struct Input<'a> { /* fields omitted */ }

Implementations

impl<'a> Input<'a>[src]

pub fn ordinary_file(path: &OsStr) -> Self[src]

pub fn stdin() -> Self[src]

pub fn from_reader(reader: Box<dyn Read + 'a>) -> Self[src]

pub fn is_stdin(&self) -> bool[src]

pub fn with_name(self, provided_name: Option<&OsStr>) -> Self[src]

pub fn description(&self) -> &InputDescription[src]

pub fn description_mut(&mut self) -> &mut InputDescription[src]

Trait Implementations

impl<'a> Into<Input<'a>> for Input<'a>[src]

impl<'a> Into<Input<'a>> for Input<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.