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