pub struct SliceSep<S, T: StringExtT> {
pub inner: T,
pub separator: S,
}
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Expand description
A slice, separated by a separator.
The separator you specify like str_concat!(sep = ',', ...)
will override
the one you set when creating SliceSep
.
Fields§
§inner: T
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.The inner slice.
separator: S
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.The separator.
Implementations§
Source§impl<S: SeparatorT, T: StringExtT> SliceSep<S, T>
impl<S: SeparatorT, T: StringExtT> SliceSep<S, T>
Trait Implementations§
Source§impl<S: SeparatorT, T: StringExtT + Copy> StringExtT for &SliceSep<S, T>
impl<S: SeparatorT, T: StringExtT + Copy> StringExtT for &SliceSep<S, T>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Push the value to the string.
Source§fn push_to_string_with_separator(
self,
string: &mut Vec<u8>,
separator: impl SeparatorT,
)
fn push_to_string_with_separator( self, string: &mut Vec<u8>, separator: impl SeparatorT, )
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Push the value to the string with a separator. Read more
Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Encode the value to the string.
Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Push the value to the string with separator Read more
Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.With prefix. Read more
Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.With suffix. Read more
Source§impl<T: StringExtT> StringExtT for SliceSep<(), T>
impl<T: StringExtT> StringExtT for SliceSep<(), T>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Push the value to the string.
Source§fn push_to_string_with_separator(
self,
string: &mut Vec<u8>,
separator: impl SeparatorT,
)
fn push_to_string_with_separator( self, string: &mut Vec<u8>, separator: impl SeparatorT, )
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Push the value to the string with a separator. Read more
Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Encode the value to the string.
Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Push the value to the string with separator Read more
Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.With prefix. Read more
Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.With suffix. Read more
Source§impl<S: SeparatorT, T: StringExtT> StringExtT for SliceSep<S, T>
impl<S: SeparatorT, T: StringExtT> StringExtT for SliceSep<S, T>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Push the value to the string.
Source§fn push_to_string_with_separator(
self,
string: &mut Vec<u8>,
separator: impl SeparatorT,
)
fn push_to_string_with_separator( self, string: &mut Vec<u8>, separator: impl SeparatorT, )
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Push the value to the string with a separator. Read more
Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Encode the value to the string.
Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Push the value to the string with separator Read more
Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.With prefix. Read more
Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.With suffix. Read more
impl<S: Copy, T: Copy + StringExtT> Copy for SliceSep<S, T>
Auto Trait Implementations§
impl<S, T> Freeze for SliceSep<S, T>
impl<S, T> RefUnwindSafe for SliceSep<S, T>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, T> Send for SliceSep<S, T>
impl<S, T> Sync for SliceSep<S, T>
impl<S, T> Unpin for SliceSep<S, T>
impl<S, T> UnwindSafe for SliceSep<S, T>where
T: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more