pub struct NumStr<const B: u8 = 10, const U: bool = false, const R: usize = 0, const M: usize = 0, T = usize>(/* private fields */);
string_v2
instead, v1 will be removed in 0.9.0.Expand description
Number to string
§Generic
-
B
: the base of the number, should be within the range2..=16
. Default is 10. -
U
: whether to use uppercase for hex. Default is lowercase (false).For float number,
U
means whether only to reserve the integer part. -
R
: the resize length of the string. The overflow part will be truncated, and the insufficient part will be filled with ‘0’. Default is 0, or no resize. -
M
: the minimum length of the string, if the length of the string is less thanM
, fill with ‘0’. Default is 0, or no minimum. For signed numberM
will be ignored. -
T
: the underlying type of the number. Default isusize
.
§Panic
- Invalid base (== 0 or > 16)
Implementations§
Source§impl<T> NumStr<10, false, 0, 0, T>
impl<T> NumStr<10, false, 0, 0, T>
Sourcepub fn new_default(inner: T) -> Self
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn new_default(inner: T) -> Self
string_v2
instead, v1 will be removed in 0.9.0.Sourcepub fn hex_default(inner: T) -> NumStr<16, false, 0, 0, T>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn hex_default(inner: T) -> NumStr<16, false, 0, 0, T>
string_v2
instead, v1 will be removed in 0.9.0.Source§impl NumStr<10, false, 0, 0, u8>
impl NumStr<10, false, 0, 0, u8>
Sourcepub fn hex_byte_default(inner: u8) -> NumStr<16, false, 2, 0, u8>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn hex_byte_default(inner: u8) -> NumStr<16, false, 2, 0, u8>
string_v2
instead, v1 will be removed in 0.9.0.§Create a new NumStr
with the given number, mostly for encoding bytes to hex.
With default settings of B
, U
, R
, M
:
B
:16
U
:false
R
:2
M
:0
See NumStr
for details.
§Notice
For negative number, R
, M
will not make sense
§Examples
let nums = vec![0x11, 0x45, 0x14, 0x19, 0x19, 0x81, 0x00]
.into_iter()
.map(NumStr::hex_byte_default);
assert_eq!(nums.to_string_ext(), "11451419198100");
Source§impl<const B: u8, const U: bool, const R: usize, const M: usize, T> NumStr<B, U, R, M, T>
impl<const B: u8, const U: bool, const R: usize, const M: usize, T> NumStr<B, U, R, M, T>
Sourcepub fn new(inner: T) -> Self
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn new(inner: T) -> Self
string_v2
instead, v1 will be removed in 0.9.0.Create a new NumStr
with the given number.
Sourcepub fn decimal(self) -> NumStr<10, U, R, M, T>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn decimal(self) -> NumStr<10, U, R, M, T>
string_v2
instead, v1 will be removed in 0.9.0.Convert to decimal representation.
Sourcepub fn hexadecimal(self) -> NumStr<16, U, R, M, T>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn hexadecimal(self) -> NumStr<16, U, R, M, T>
string_v2
instead, v1 will be removed in 0.9.0.Convert to hexadecimal representation.
Sourcepub fn set_custom_base<const NB: u8>(self) -> NumStr<NB, U, R, M, T>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn set_custom_base<const NB: u8>(self) -> NumStr<NB, U, R, M, T>
string_v2
instead, v1 will be removed in 0.9.0.Set custom base.
The valid range is 2..=16
Sourcepub fn set_uppercase<const NU: bool>(self) -> NumStr<B, NU, R, M, T>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn set_uppercase<const NU: bool>(self) -> NumStr<B, NU, R, M, T>
string_v2
instead, v1 will be removed in 0.9.0.Set uppercase / lowercase of the number.
Default is lowercase
Note: only works for base > 10
Sourcepub fn set_resize_len<const NR: usize>(self) -> NumStr<B, U, NR, M, T>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn set_resize_len<const NR: usize>(self) -> NumStr<B, U, NR, M, T>
string_v2
instead, v1 will be removed in 0.9.0.Set whether to resize the string to len
length.
The overflow part will be truncated, and the insufficient part will be filled with ‘0’
Default is not resize
Note: see Vec::resize
for details
Sourcepub fn set_minimum_len<const NM: usize>(self) -> NumStr<B, U, R, NM, T>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn set_minimum_len<const NM: usize>(self) -> NumStr<B, U, R, NM, T>
string_v2
instead, v1 will be removed in 0.9.0.Set the minimum length of the string.
The insufficient part will be filled with ‘0’.
Default is not minimum
Note: if set Self::should_resize
, the minimum length will be ignored
Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, f32>
impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, f32>
Sourcepub fn set_integer_only<const NU: bool>(self) -> NumStr<B, NU, R, M, f32>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn set_integer_only<const NU: bool>(self) -> NumStr<B, NU, R, M, f32>
string_v2
instead, v1 will be removed in 0.9.0.Set integer only mode.
Default disable.
Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, f64>
impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, f64>
Sourcepub fn set_integer_only<const NU: bool>(self) -> NumStr<B, NU, R, M, f64>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn set_integer_only<const NU: bool>(self) -> NumStr<B, NU, R, M, f64>
string_v2
instead, v1 will be removed in 0.9.0.Set integer only mode.
Default disable.
Trait Implementations§
Source§impl<const B: u8, const U: bool, const R: usize, const M: usize, T> AsRef<T> for NumStr<B, U, R, M, T>
impl<const B: u8, const U: bool, const R: usize, const M: usize, T> AsRef<T> for NumStr<B, U, R, M, T>
Source§impl<const B: u8, const U: bool, const R: usize, const M: usize, T: Clone> Clone for NumStr<B, U, R, M, T>
impl<const B: u8, const U: bool, const R: usize, const M: usize, T: Clone> Clone for NumStr<B, U, R, M, T>
Source§impl<const B: u8, const U: bool, const R: usize, const M: usize, T: Debug> Debug for NumStr<B, U, R, M, T>
impl<const B: u8, const U: bool, const R: usize, const M: usize, T: Debug> Debug for NumStr<B, U, R, M, T>
Source§impl<const B: u8, const U: bool, const R: usize, const M: usize, T> Deref for NumStr<B, U, R, M, T>
impl<const B: u8, const U: bool, const R: usize, const M: usize, T> Deref for NumStr<B, U, R, M, T>
Source§impl<const B: u8, const U: bool, const R: usize, const M: usize, T> DerefMut for NumStr<B, U, R, M, T>
impl<const B: u8, const U: bool, const R: usize, const M: usize, T> DerefMut for NumStr<B, U, R, M, T>
Source§impl<const B: u8, const U: bool, const R: usize, const M: usize, T: Ord> Ord for NumStr<B, U, R, M, T>
impl<const B: u8, const U: bool, const R: usize, const M: usize, T: Ord> Ord for NumStr<B, U, R, M, T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<const B: u8, const U: bool, const R: usize, const M: usize, T: PartialEq> PartialEq for NumStr<B, U, R, M, T>
impl<const B: u8, const U: bool, const R: usize, const M: usize, T: PartialEq> PartialEq for NumStr<B, U, R, M, T>
Source§impl<const B: u8, const U: bool, const R: usize, const M: usize, T: PartialOrd> PartialOrd for NumStr<B, U, R, M, T>
impl<const B: u8, const U: bool, const R: usize, const M: usize, T: PartialOrd> PartialOrd for NumStr<B, U, R, M, T>
Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, usize>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, usize>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, f32>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, f32>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, f64>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, f64>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, i128>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, i128>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, i16>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, i16>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, i32>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, i32>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, i64>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, i64>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, i8>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, i8>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, isize>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, isize>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, u128>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, u128>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, u16>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, u16>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, u32>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, u32>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, u64>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, u64>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, u8>
impl<const B: u8, const U: bool, const R: usize, const M: usize> StringExtT for NumStr<B, U, R, M, u8>
Source§fn push_to_string(self, string: &mut Vec<u8>)
fn push_to_string(self, string: &mut Vec<u8>)
string_v2
instead, v1 will be removed in 0.9.0.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, )
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
fn to_string_ext_with_sep(self, separator: impl SeparatorT) -> String
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT>(self, prefix: P) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.Source§fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT>(self, suffix: S) -> impl StringExtT
string_v2
instead, v1 will be removed in 0.9.0.