Trait DisplayExt

Source
pub trait DisplayExt: Display
where Self: Sized,
{ // Provided methods fn collect_str(self, buf: &mut [u8]) -> Result<&str, &str> { ... } fn collect_str_mut(self, buf: &mut [u8]) -> Result<&mut str, &mut str> { ... } fn display_lowercase(self) -> Lowercase<Self> { ... } fn display_uppercase(self) -> Uppercase<Self> { ... } fn display_repeat(self, times: usize) -> Repeat<Self> { ... } fn extract_slice<R: RangeBounds<usize>>( self, range: R, ) -> DisplaySlice<Self> { ... } fn display_cmp(self, other: &str) -> Ordering { ... } }
Expand description

Extension trait providing convenient access to the base functions in the crate root.

Provided Methods§

Source

fn collect_str(self, buf: &mut [u8]) -> Result<&str, &str>

Source

fn collect_str_mut(self, buf: &mut [u8]) -> Result<&mut str, &mut str>

Source

fn display_lowercase(self) -> Lowercase<Self>

Alias for crate::lowercase

Source

fn display_uppercase(self) -> Uppercase<Self>

Alias for crate::uppercase

Source

fn display_repeat(self, times: usize) -> Repeat<Self>

Alias for crate::repeat

Source

fn extract_slice<R: RangeBounds<usize>>(self, range: R) -> DisplaySlice<Self>

Alias for crate::slice

Source

fn display_cmp(self, other: &str) -> Ordering

Alias for crate::cmp

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.

Implementors§