pub trait SeparatorT: StringExtT + Copy {
// Required method
fn remove_end(&self, string: &mut Vec<u8>);
}
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Expand description
Trait for removing the separator from the end of the string
Required Methods§
Sourcefn remove_end(&self, string: &mut Vec<u8>)
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
fn remove_end(&self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.Remove the separator from the end of the string
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.
Implementations on Foreign Types§
Source§impl SeparatorT for &str
impl SeparatorT for &str
Source§fn remove_end(&self, string: &mut Vec<u8>)
fn remove_end(&self, string: &mut Vec<u8>)
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Source§impl SeparatorT for char
impl SeparatorT for char
Source§fn remove_end(&self, string: &mut Vec<u8>)
fn remove_end(&self, string: &mut Vec<u8>)
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.