Struct custom_print::FmtWriter
source · pub struct FmtWriter<F1>(_);
Expand description
Implementations§
source§impl<F1> FmtWriter<F1>where
F1: WriteStr,
impl<F1> FmtWriter<F1>where F1: WriteStr,
sourcepub fn from_closure<F, Ts>(closure: F) -> Selfwhere
F: IntoWriteFn<Ts, WriteFn = F1>,
pub fn from_closure<F, Ts>(closure: F) -> Selfwhere F: IntoWriteFn<Ts, WriteFn = F1>,
Creates a new FmtWriter
with a WriteStr
wrapper
deduced with IntoWriteFn
by the closure signature and constructed from it.
Trait Implementations§
source§impl<F1: PartialEq> PartialEq<FmtWriter<F1>> for FmtWriter<F1>
impl<F1: PartialEq> PartialEq<FmtWriter<F1>> for FmtWriter<F1>
source§impl<F1> Write for FmtWriter<F1>where
Self: WriteStr<Output = Result>,
impl<F1> Write for FmtWriter<F1>where Self: WriteStr<Output = Result>,
source§impl<F1> WriteBytes for FmtWriter<F1>where
F1: WriteBytes,
F1::Output: ExpectFmtWriteResult,
impl<F1> WriteBytes for FmtWriter<F1>where F1: WriteBytes, F1::Output: ExpectFmtWriteResult,
impl<F1: Copy> Copy for FmtWriter<F1>
impl<F1: Eq> Eq for FmtWriter<F1>
impl<F1> StructuralEq for FmtWriter<F1>
impl<F1> StructuralPartialEq for FmtWriter<F1>
Auto Trait Implementations§
impl<F1> RefUnwindSafe for FmtWriter<F1>where F1: RefUnwindSafe,
impl<F1> Send for FmtWriter<F1>where F1: Send,
impl<F1> Sync for FmtWriter<F1>where F1: Sync,
impl<F1> Unpin for FmtWriter<F1>where F1: Unpin,
impl<F1> UnwindSafe for FmtWriter<F1>where F1: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more