pub trait DisplayExt: Displaywhere
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§
Sourcefn collect_str(self, buf: &mut [u8]) -> Result<&str, &str>
fn collect_str(self, buf: &mut [u8]) -> Result<&str, &str>
Alias for crate::collect_str
Sourcefn collect_str_mut(self, buf: &mut [u8]) -> Result<&mut str, &mut str>
fn collect_str_mut(self, buf: &mut [u8]) -> Result<&mut str, &mut str>
Alias for crate::collect_str_mut
Sourcefn display_lowercase(self) -> Lowercase<Self>
fn display_lowercase(self) -> Lowercase<Self>
Alias for crate::lowercase
Sourcefn display_uppercase(self) -> Uppercase<Self>
fn display_uppercase(self) -> Uppercase<Self>
Alias for crate::uppercase
Sourcefn display_repeat(self, times: usize) -> Repeat<Self>
fn display_repeat(self, times: usize) -> Repeat<Self>
Alias for crate::repeat
Sourcefn extract_slice<R: RangeBounds<usize>>(self, range: R) -> DisplaySlice<Self>
fn extract_slice<R: RangeBounds<usize>>(self, range: R) -> DisplaySlice<Self>
Alias for crate::slice
Sourcefn display_cmp(self, other: &str) -> Ordering
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.