[−][src]Struct hexyl::Printer
Methods
impl<'a, Writer: Write> Printer<'a, Writer>
[src]
pub fn new(
writer: &'a mut Writer,
show_color: bool,
border_style: BorderStyle,
use_squeeze: bool
) -> Printer<'a, Writer>
[src]
writer: &'a mut Writer,
show_color: bool,
border_style: BorderStyle,
use_squeeze: bool
) -> Printer<'a, Writer>
pub fn display_offset(&mut self, display_offset: usize) -> &mut Self
[src]
pub fn header(&mut self)
[src]
pub fn footer(&mut self)
[src]
pub fn print_byte(&mut self, b: u8) -> Result<()>
[src]
pub fn print_textline(&mut self) -> Result<()>
[src]
pub fn header_was_printed(&self) -> bool
[src]
pub fn print_all<Reader: Read>(
&mut self,
reader: Reader,
canceller: Option<Arc<AtomicBool>>
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
reader: Reader,
canceller: Option<Arc<AtomicBool>>
) -> Result<(), Box<dyn Error>>
Loop through the given Reader
, printing until the Reader
buffer
is exhausted, or the optional cancelled
bool is set to true.
Auto Trait Implementations
impl<'a, Writer> Send for Printer<'a, Writer> where
Writer: Send,
Writer: Send,
impl<'a, Writer> Sync for Printer<'a, Writer> where
Writer: Sync,
Writer: Sync,
impl<'a, Writer> Unpin for Printer<'a, Writer>
impl<'a, Writer> !UnwindSafe for Printer<'a, Writer>
impl<'a, Writer> RefUnwindSafe for Printer<'a, Writer> where
Writer: RefUnwindSafe,
Writer: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,