Struct num_format::utils::MinusSignStr [−][src]
pub struct MinusSignStr<'a>(_);
Simple wrapper type for a &str
to make sure its length is less than the maximum for
a minus sign (8 bytes).
Implementations
impl<'a> MinusSignStr<'a>
[src]
impl<'a> MinusSignStr<'a>
[src]pub fn new(s: &'a str) -> Result<MinusSignStr<'a>, Error>
[src]
Constructs a MinusSignStr
, ensuring that the length is less than the maximum for
a minus sign (8 bytes).
Errors
Returns an error if the provided &str
’s length is more than 7 bytes.
impl<'a> MinusSignStr<'a>
[src]
impl<'a> MinusSignStr<'a>
[src]Trait Implementations
impl<'a> Clone for MinusSignStr<'a>
[src]
impl<'a> Clone for MinusSignStr<'a>
[src]fn clone(&self) -> MinusSignStr<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Hash for MinusSignStr<'a>
[src]
impl<'a> Hash for MinusSignStr<'a>
[src]impl<'a> Ord for MinusSignStr<'a>
[src]
impl<'a> Ord for MinusSignStr<'a>
[src]impl<'a> PartialEq<MinusSignStr<'a>> for MinusSignStr<'a>
[src]
impl<'a> PartialEq<MinusSignStr<'a>> for MinusSignStr<'a>
[src]fn eq(&self, other: &MinusSignStr<'a>) -> bool
[src]
fn ne(&self, other: &MinusSignStr<'a>) -> bool
[src]
impl<'a> PartialOrd<MinusSignStr<'a>> for MinusSignStr<'a>
[src]
impl<'a> PartialOrd<MinusSignStr<'a>> for MinusSignStr<'a>
[src]fn partial_cmp(&self, other: &MinusSignStr<'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