Struct num_format::utils::SeparatorStr [−][src]
pub struct SeparatorStr<'a>(_);
Simple wrapper type for a &str
to make sure its length is less than the maximum for
a separator (8 bytes).
Implementations
impl<'a> SeparatorStr<'a>
[src]
impl<'a> SeparatorStr<'a>
[src]pub fn new(s: &'a str) -> Result<SeparatorStr<'a>, Error>
[src]
Constructs an SeparatorStr
, ensuring that the length is less than the maximum for
a separator (8 bytes).
Errors
Returns an error if the provided &str
’s length is more than 8 bytes.
impl<'a> SeparatorStr<'a>
[src]
impl<'a> SeparatorStr<'a>
[src]Trait Implementations
impl<'a> Clone for SeparatorStr<'a>
[src]
impl<'a> Clone for SeparatorStr<'a>
[src]fn clone(&self) -> SeparatorStr<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Hash for SeparatorStr<'a>
[src]
impl<'a> Hash for SeparatorStr<'a>
[src]impl<'a> Ord for SeparatorStr<'a>
[src]
impl<'a> Ord for SeparatorStr<'a>
[src]impl<'a> PartialEq<SeparatorStr<'a>> for SeparatorStr<'a>
[src]
impl<'a> PartialEq<SeparatorStr<'a>> for SeparatorStr<'a>
[src]fn eq(&self, other: &SeparatorStr<'a>) -> bool
[src]
fn ne(&self, other: &SeparatorStr<'a>) -> bool
[src]
impl<'a> PartialOrd<SeparatorStr<'a>> for SeparatorStr<'a>
[src]
impl<'a> PartialOrd<SeparatorStr<'a>> for SeparatorStr<'a>
[src]fn partial_cmp(&self, other: &SeparatorStr<'a>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> bool