[−][src]Struct broot::display::CropWriter
wrap a writer to ensure that at most allowed
chars are
written.
Fields
w: &'w mut W
allowed: usize
Implementations
impl<'w, W> CropWriter<'w, W> where
W: Write,
[src]
W: Write,
pub fn new(w: &'w mut W, limit: usize) -> Self
[src]
pub fn is_full(&self) -> bool
[src]
pub fn queue_str(&mut self, cs: &CompoundStyle, s: &str) -> Result<()>
[src]
pub fn queue_char(&mut self, cs: &CompoundStyle, c: char) -> Result<()>
[src]
pub fn fill(&mut self, cs: &CompoundStyle, filling: &'static str) -> Result<()>
[src]
pub fn repeat(
&mut self,
cs: &CompoundStyle,
filling: &'static str,
len: usize
) -> Result<()>
[src]
&mut self,
cs: &CompoundStyle,
filling: &'static str,
len: usize
) -> Result<()>
pub fn queue_string(&mut self, cs: &CompoundStyle, s: String) -> Result<()>
[src]
pub fn queue_bg(&mut self, cs: &CompoundStyle) -> Result<()>
[src]
Auto Trait Implementations
impl<'w, W> RefUnwindSafe for CropWriter<'w, W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<'w, W> Send for CropWriter<'w, W> where
W: Send,
W: Send,
impl<'w, W> Sync for CropWriter<'w, W> where
W: Sync,
W: Sync,
impl<'w, W> Unpin for CropWriter<'w, W>
impl<'w, W> !UnwindSafe for CropWriter<'w, W>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,