Struct bat::Input [−][src]
pub struct Input<'a> { /* fields omitted */ }
Expand description
An input source for the pretty printer.
Implementations
impl<'a> Input<'a>
[src]
impl<'a> Input<'a>
[src]pub fn from_reader<R: Read + 'a>(reader: R) -> Self
[src]
pub fn from_reader<R: Read + 'a>(reader: R) -> Self
[src]A new input from a reader.
pub fn from_bytes(bytes: &'a [u8]) -> Self
[src]
pub fn from_bytes(bytes: &'a [u8]) -> Self
[src]A new input from bytes.
pub fn from_stdin() -> Self
[src]
pub fn from_stdin() -> Self
[src]A new input from STDIN.
pub fn name(self, name: impl AsRef<Path>) -> Self
[src]
pub fn name(self, name: impl AsRef<Path>) -> Self
[src]The filename of the input. This affects syntax detection and changes the default header title.