pub trait FormatBuf:
Extend<Self::Char>
+ Default
+ FromIterator<Self::Char>
+ From<String> {
type Char: FormatChar;
// Required methods
fn chars(&self) -> impl Iterator<Item = Self::Char>;
fn len(&self) -> usize;
fn concat(self, other: Self) -> Self;
// Provided method
fn is_empty(&self) -> bool { ... }
}Required Associated Types§
type Char: FormatChar
Required Methods§
fn chars(&self) -> impl Iterator<Item = Self::Char>
fn len(&self) -> usize
fn concat(self, other: Self) -> Self
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.