[−][src]Struct ufmt::Formatter
Configuration for formatting
Methods
impl<'w, W: ?Sized> Formatter<'w, W> where
W: uWrite,
[src]
W: uWrite,
pub fn debug_list(&mut self) -> Result<DebugList<'_, 'w, W>, W::Error>
[src]
Creates a DebugList
builder designed to assist with creation of uDebug
implementations
for list-like structures.
pub fn debug_map(&mut self) -> Result<DebugMap<'_, 'w, W>, W::Error>
[src]
Creates a DebugMap
builder designed to assist with creation of uDebug
implementations
for map-like structures.
pub fn debug_set(&mut self) -> Result<DebugSet<'_, 'w, W>, W::Error>
[src]
Creates a DebugSet
builder designed to assist with creation of uDebug
implementations
for set-like structures.
pub fn debug_struct(
&mut self,
name: &str
) -> Result<DebugStruct<'_, 'w, W>, W::Error>
[src]
&mut self,
name: &str
) -> Result<DebugStruct<'_, 'w, W>, W::Error>
Creates a DebugStruct
builder designed to assist with creation of uDebug
implementations
for structs.
pub fn debug_tuple(
&mut self,
name: &str
) -> Result<DebugTuple<'_, 'w, W>, W::Error>
[src]
&mut self,
name: &str
) -> Result<DebugTuple<'_, 'w, W>, W::Error>
Creates a DebugTuple
builder designed to assist with creation of uDebug
implementations
for tuple structs.
impl<'w, W: ?Sized> Formatter<'w, W> where
W: uWrite,
[src]
W: uWrite,
pub fn new(writer: &'w mut W) -> Self
[src]
Creates a formatter from the given writer
pub fn pretty(
&mut self,
f: impl FnOnce(&mut Self) -> Result<(), W::Error>
) -> Result<(), W::Error>
[src]
&mut self,
f: impl FnOnce(&mut Self) -> Result<(), W::Error>
) -> Result<(), W::Error>
Execute the closure with pretty-printing enabled
pub fn write_char(&mut self, c: char) -> Result<(), W::Error>
[src]
Writes a character to the underlying buffer contained within this formatter.
pub fn write_str(&mut self, s: &str) -> Result<(), W::Error>
[src]
Writes a string slice to the underlying buffer contained within this formatter.
Auto Trait Implementations
impl<'w, W: ?Sized> Unpin for Formatter<'w, W>
impl<'w, W: ?Sized> Send for Formatter<'w, W> where
W: Send,
W: Send,
impl<'w, W: ?Sized> Sync for Formatter<'w, W> where
W: Sync,
W: Sync,
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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,