pub struct Empty;Expand description
Empty type that never writes anything.
This is mostly a helper for macros.
Implementations§
Trait Implementations§
Source§impl<S> Fmt<S> for Empty
impl<S> Fmt<S> for Empty
Source§fn fmt<W: Write>(&self, _writer: &mut W, _strategy: &S) -> Result<(), W::Error>
fn fmt<W: Write>(&self, _writer: &mut W, _strategy: &S) -> Result<(), W::Error>
The implementor should write itself into
writer inside this function.Source§fn size_hint(&self, _strategy: &S) -> usize
fn size_hint(&self, _strategy: &S) -> usize
The implementor should estimate how many bytes would it’s representation have in UTF-8 if
formated using specific strategy. Read more
Source§fn transformed<T: Transform>(self, transformation: T) -> Transformed<Self, T>where
Self: Sized,
fn transformed<T: Transform>(self, transformation: T) -> Transformed<Self, T>where
Self: Sized,
Combinator for transforming the value,
impl Copy for Empty
Auto Trait Implementations§
impl Freeze for Empty
impl RefUnwindSafe for Empty
impl Send for Empty
impl Sync for Empty
impl Unpin for Empty
impl UnwindSafe for Empty
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