pub struct SliceSep<S, T: StringExtT> {
pub inner: T,
pub separator: S,
}
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
The inner slice.
separator: S
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>)
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, )
Push the value to the string with a separator. Read more
Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
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
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
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
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>)
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, )
Push the value to the string with a separator. Read more
Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
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
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
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
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>)
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, )
Push the value to the string with a separator. Read more
Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
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
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
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
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