Struct num_format::utils::SeparatorStr [−][src]
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][−]
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][−]
Trait Implementations
impl<'a> AsRef<str> for SeparatorStr<'a>
[src][+]
impl<'a> Clone for SeparatorStr<'a>
[src][+]
impl<'a> Debug for SeparatorStr<'a>
[src][+]
impl<'a> Display for SeparatorStr<'a>
[src][+]
impl<'a> Eq for SeparatorStr<'a>
[src]
impl<'a> Hash for SeparatorStr<'a>
[src][+]
impl<'a> Ord for SeparatorStr<'a>
[src][+]
impl<'a> PartialEq<SeparatorStr<'a>> for SeparatorStr<'a>
[src][+]
impl<'a> PartialOrd<SeparatorStr<'a>> for SeparatorStr<'a>
[src][+]
impl<'a> StructuralEq for SeparatorStr<'a>
[src]
impl<'a> StructuralPartialEq for SeparatorStr<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for SeparatorStr<'a>
impl<'a> Send for SeparatorStr<'a>
impl<'a> Sync for SeparatorStr<'a>
impl<'a> Unpin for SeparatorStr<'a>
impl<'a> UnwindSafe for SeparatorStr<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,