pub trait ShortString {
// Required methods
fn short_string(&self) -> Result<String, ErrorInfo>;
fn first_four_last_four_ellipses(&self) -> Result<String, ErrorInfo>;
fn last_n(&self, n: impl Into<i32>) -> Result<String, ErrorInfo>;
fn first_n(&self, n: impl Into<i32>) -> Result<String, ErrorInfo>;
}Required Methods§
fn short_string(&self) -> Result<String, ErrorInfo>
fn first_four_last_four_ellipses(&self) -> Result<String, ErrorInfo>
fn last_n(&self, n: impl Into<i32>) -> Result<String, ErrorInfo>
fn first_n(&self, n: impl Into<i32>) -> Result<String, ErrorInfo>
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.