Module

std::fmt

source

Re-exported from alloc::fmt.

Formatting adapters for owning byte buffers.

Re-exports

WriterRe-export of core::fmt::Writer.
FormatRe-export of core::fmt::Format.
PrintableRe-export of core::fmt::Printable.
ReadingWriter!Re-export of core::fmt::ReadingWriter!.
CountingWriterRe-export of core::fmt::CountingWriter.

Types

FullThe sticky error a FixedWriter! reports once it has run out of room.
FixedWriter!A byte buffer that never grows past cap.

Instances

Format[Buffer!, W]Formats an owned buffer as its contents.
Printable[Buffer!, W]A buffer prints as its contents, and is freed.
Writer[FixedWriter!]A fixed writer as a writer: bytes past its capacity are dropped.

Instance declarations

instance Format[Buffer!, W]source

forall W where Writer[W].
instance Format[Buffer!, W] { ... }

Formats an owned buffer as its contents. The buffer is handed back, not freed: an f-string formats a linear value only through {&name}.

instance Printable[Buffer!, W]source

forall W where Writer[W].
instance Printable[Buffer!, W] { ... }

A buffer prints as its contents, and is freed.

instance Writer[FixedWriter!]source

instance Writer[FixedWriter!] { ... }

A fixed writer as a writer: bytes past its capacity are dropped.