macro_toolset::string

Struct NumStr

Source
pub struct NumStr<const B: u8 = 10, const U: bool = false, const R: usize = 0, const M: usize = 0, T = usize>(/* private fields */);
👎Deprecated since 0.8.0-rc.1: Use 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 range 2..=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 than M, fill with ‘0’. Default is 0, or no minimum. For signed number M will be ignored.

  • T: the underlying type of the number. Default is usize.

§Panic

  • Invalid base (== 0 or > 16)

Implementations§

Source§

impl<T> NumStr<10, false, 0, 0, T>

Source

pub 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.
§Create a new NumStr with the given number.

With default settings of B, U, R, M:

  • B: 10
  • U: false
  • R: 0
  • M: 0

See NumStr for details.

If you want a hexadecimal number, chains with NumStr::hexadecimal().

§Notice

For negative number, R, M will not make sense

§Examples
NumStr::new_default(123_i16)
Source

pub 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.
§Create a new NumStr with the given number.

With default settings of B, U, R, M:

  • B: 16
  • U: false
  • R: 0
  • M: 0

See NumStr for details.

§Notice

For negative number, R, M will not make sense

§Examples
NumStr::hex_default(123_i16)
Source§

impl NumStr<10, false, 0, 0, u8>

Source

pub 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.
§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>

Source

pub fn new(inner: T) -> Self

👎Deprecated since 0.8.0-rc.1: Use string_v2 instead, v1 will be removed in 0.9.0.

Create a new NumStr with the given number.

Source

pub 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.

Convert to decimal representation.

Source

pub 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.

Convert to hexadecimal representation.

Source

pub 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.

Set custom base.

The valid range is 2..=16

Source

pub 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.

Set uppercase / lowercase of the number.

Default is lowercase

Note: only works for base > 10

Source

pub 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.

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

Source

pub 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.

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>

Source

pub 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.

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>

Source

pub 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.

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, u8>

Source

pub fn encode(self, string: &mut Vec<u8>)

👎Deprecated since 0.8.0-rc.1: Use string_v2 instead, v1 will be removed in 0.9.0.

Encode the number to the str

Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, u16>

Source

pub fn encode(self, string: &mut Vec<u8>)

👎Deprecated since 0.8.0-rc.1: Use string_v2 instead, v1 will be removed in 0.9.0.

Encode the number to the str

Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, u32>

Source

pub fn encode(self, string: &mut Vec<u8>)

👎Deprecated since 0.8.0-rc.1: Use string_v2 instead, v1 will be removed in 0.9.0.

Encode the number to the str

Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, u64>

Source

pub fn encode(self, string: &mut Vec<u8>)

👎Deprecated since 0.8.0-rc.1: Use string_v2 instead, v1 will be removed in 0.9.0.

Encode the number to the str

Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, u128>

Source

pub fn encode(self, string: &mut Vec<u8>)

👎Deprecated since 0.8.0-rc.1: Use string_v2 instead, v1 will be removed in 0.9.0.

Encode the number to the str

Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, usize>

Source

pub fn encode(self, string: &mut Vec<u8>)

👎Deprecated since 0.8.0-rc.1: Use string_v2 instead, v1 will be removed in 0.9.0.

Encode the number to the str

Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, i8>

Source

pub fn encode(self, string: &mut Vec<u8>)

👎Deprecated since 0.8.0-rc.1: Use string_v2 instead, v1 will be removed in 0.9.0.

Encode the number to the str

Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, i16>

Source

pub fn encode(self, string: &mut Vec<u8>)

👎Deprecated since 0.8.0-rc.1: Use string_v2 instead, v1 will be removed in 0.9.0.

Encode the number to the str

Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, i32>

Source

pub fn encode(self, string: &mut Vec<u8>)

👎Deprecated since 0.8.0-rc.1: Use string_v2 instead, v1 will be removed in 0.9.0.

Encode the number to the str

Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, i64>

Source

pub fn encode(self, string: &mut Vec<u8>)

👎Deprecated since 0.8.0-rc.1: Use string_v2 instead, v1 will be removed in 0.9.0.

Encode the number to the str

Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, i128>

Source

pub fn encode(self, string: &mut Vec<u8>)

👎Deprecated since 0.8.0-rc.1: Use string_v2 instead, v1 will be removed in 0.9.0.

Encode the number to the str

Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize> NumStr<B, U, R, M, isize>

Source

pub fn encode(self, string: &mut Vec<u8>)

👎Deprecated since 0.8.0-rc.1: Use string_v2 instead, v1 will be removed in 0.9.0.

Encode the number to the str

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>

Source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T: Clone> Clone for NumStr<B, U, R, M, T>

Source§

fn clone(&self) -> NumStr<B, U, R, M, T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T: Debug> Debug for NumStr<B, U, R, M, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T> Deref for NumStr<B, U, R, M, T>

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T> DerefMut for NumStr<B, U, R, M, T>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T: Ord> Ord for NumStr<B, U, R, M, T>

Source§

fn cmp(&self, other: &NumStr<B, U, R, M, T>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T: PartialEq> PartialEq for NumStr<B, U, R, M, T>

Source§

fn eq(&self, other: &NumStr<B, U, R, M, T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T: PartialOrd> PartialOrd for NumStr<B, U, R, M, T>

Source§

fn partial_cmp(&self, other: &NumStr<B, U, R, M, T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<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>)

👎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, )

👎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

👎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

👎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

👎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

👎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<const B: u8, const U: bool, const R: usize, const M: usize, T: Copy> Copy for NumStr<B, U, R, M, T>

Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T: Eq> Eq for NumStr<B, U, R, M, T>

Source§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T> StructuralPartialEq for NumStr<B, U, R, M, T>

Auto Trait Implementations§

§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T> Freeze for NumStr<B, U, R, M, T>
where T: Freeze,

§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T> RefUnwindSafe for NumStr<B, U, R, M, T>
where T: RefUnwindSafe,

§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T> Send for NumStr<B, U, R, M, T>
where T: Send,

§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T> Sync for NumStr<B, U, R, M, T>
where T: Sync,

§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T> Unpin for NumStr<B, U, R, M, T>
where T: Unpin,

§

impl<const B: u8, const U: bool, const R: usize, const M: usize, T> UnwindSafe for NumStr<B, U, R, M, T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T