[−][src]Struct datetime_string::common::SecfracDigitsString
String slice for digits of fractions of a second.
Available when alloc
feature is enabled.
Note that values of this type cannot be not empty string.
To create a value of this type, use str::parse
method or
std::convert::TryFrom
trait, or convert from &SecfracDigitsStr
.
Examples
use datetime_string::common::SecfracDigitsStr; use std::convert::TryFrom; let try_from = SecfracDigitsString::try_from("1234")?; let parse = "1234".parse::<SecfracDigitsString>()?; let parse2: SecfracDigitsString = "1234".parse()?; let to_owned = SecfracDigitsStr::from_str("1234")?.to_owned(); let into: SecfracDigitsString = SecfracDigitsStr::from_str("1234")?.into();
Implementations
impl SecfracDigitsString
[src]
#[must_use]pub fn as_deref(&self) -> &SecfracDigitsStr
[src]
Returns a &SecfracDigitsStr
for the string.
Examples
use datetime_string::common::SecfracDigitsStr; let secfrac = "1234".parse::<SecfracDigitsString>()?; // Usually you don't need to call `as_deref()` explicitly, because // `Deref<Target = SecfracDigitsStr>` trait is implemented. let _: &SecfracDigitsStr = secfrac.as_deref();
#[must_use]pub fn as_deref_mut(&mut self) -> &mut SecfracDigitsStr
[src]
Returns a &mut SecfracDigitsStr
for the string.
Examples
use datetime_string::common::SecfracDigitsStr; let mut secfrac = "1234".parse::<SecfracDigitsString>()?; // Usually you don't need to call `as_deref_mut()` explicitly, because // `DerefMut` trait is implemented. let _: &mut SecfracDigitsStr = secfrac.as_deref_mut();
Methods from Deref<Target = SecfracDigitsStr>
#[must_use]pub fn as_str(&self) -> &str
[src]
Returns a string slice.
Examples
let secfrac = SecfracDigitsStr::from_str("1234")?; assert_eq!(secfrac.as_str(), "1234");
#[must_use]pub fn as_bytes(&self) -> &[u8]
[src]
Returns a byte slice.
Examples
let secfrac = SecfracDigitsStr::from_str("1234")?; assert_eq!(secfrac.as_str(), "1234");
#[must_use]pub fn milliseconds(&self) -> u16
[src]
Retruns a milliseconds value in integer.
Examples
let not_precise = SecfracDigitsStr::from_str("1")?; assert_eq!(not_precise.milliseconds(), 100); let precise = SecfracDigitsStr::from_str("012")?; assert_eq!(precise.milliseconds(), 12); let more_precise = SecfracDigitsStr::from_str("369999")?; assert_eq!(more_precise.milliseconds(), 369);
#[must_use]pub fn milliseconds_digits(&self) -> Option<&SecfracDigitsStr>
[src]
Returns a milliseconds precision substring if there are enough digits.
Examples
let not_precise = SecfracDigitsStr::from_str("1")?; assert_eq!(not_precise.milliseconds_digits(), None); let precise = SecfracDigitsStr::from_str("012")?; assert_eq!(precise.milliseconds_digits().unwrap(), "012"); let more_precise = SecfracDigitsStr::from_str("012345678901")?; assert_eq!(more_precise.milliseconds_digits().unwrap(), "012");
#[must_use]pub fn milliseconds_digits_mut(&mut self) -> Option<&mut SecfracDigitsStr>
[src]
Returns a milliseconds precision substring if there are enough digits.
Examples
let mut buf = "012345678901".to_owned(); let digits = SecfracDigitsStr::from_mut_str(&mut buf)?; assert_eq!(digits.as_str(), "012345678901"); digits.milliseconds_digits_mut().unwrap().fill_with_zero(); assert_eq!(digits.as_str(), "000345678901");
#[must_use]pub fn milliseconds_bytes_fixed_len(&self) -> Option<&[u8; 3]>
[src]
Returns a milliseconds digits as a fixed bytes slice, if there are enough digits.
Examples
let not_precise = SecfracDigitsStr::from_str("1")?; assert_eq!(not_precise.milliseconds_bytes_fixed_len(), None); let precise = SecfracDigitsStr::from_str("012")?; assert_eq!(precise.milliseconds_bytes_fixed_len(), Some(b"012")); let more_precise = SecfracDigitsStr::from_str("012345678901")?; assert_eq!(more_precise.milliseconds_bytes_fixed_len(), Some(b"012"));
#[must_use]pub fn microseconds(&self) -> u32
[src]
Retruns a microseconds value in integer.
Examples
let not_precise = SecfracDigitsStr::from_str("1")?; assert_eq!(not_precise.microseconds(), 100_000); let precise = SecfracDigitsStr::from_str("012345")?; assert_eq!(precise.microseconds(), 012_345); let more_precise = SecfracDigitsStr::from_str("123456999")?; assert_eq!(more_precise.microseconds(), 123_456);
#[must_use]pub fn microseconds_digits(&self) -> Option<&SecfracDigitsStr>
[src]
Returns a microseconds precision substring if there are enough digits.
Examples
let not_precise = SecfracDigitsStr::from_str("1234")?; assert_eq!(not_precise.microseconds_digits(), None); let precise = SecfracDigitsStr::from_str("012345")?; assert_eq!(precise.microseconds_digits().unwrap(), "012345"); let more_precise = SecfracDigitsStr::from_str("012345678901")?; assert_eq!(more_precise.microseconds_digits().unwrap(), "012345");
#[must_use]pub fn microseconds_digits_mut(&mut self) -> Option<&mut SecfracDigitsStr>
[src]
Returns a microseconds precision substring if there are enough digits.
Examples
let mut buf = "012345678901".to_owned(); let digits = SecfracDigitsStr::from_mut_str(&mut buf)?; assert_eq!(digits.as_str(), "012345678901"); digits.microseconds_digits_mut().unwrap().fill_with_zero(); assert_eq!(digits.as_str(), "000000678901");
#[must_use]pub fn microseconds_bytes_fixed_len(&self) -> Option<&[u8; 6]>
[src]
Returns a microseconds digits as a fixed bytes slice, if there are enough digits.
Examples
let not_precise = SecfracDigitsStr::from_str("1234")?; assert_eq!(not_precise.microseconds_bytes_fixed_len(), None); let precise = SecfracDigitsStr::from_str("012345")?; assert_eq!(precise.microseconds_bytes_fixed_len(), Some(b"012345")); let more_precise = SecfracDigitsStr::from_str("012345678901")?; assert_eq!(more_precise.microseconds_bytes_fixed_len(), Some(b"012345"));
#[must_use]pub fn nanoseconds(&self) -> u32
[src]
Retruns a nanoseconds value in integer.
Examples
let not_precise = SecfracDigitsStr::from_str("1")?; assert_eq!(not_precise.nanoseconds(), 100_000_000); let precise = SecfracDigitsStr::from_str("012345678")?; assert_eq!(precise.nanoseconds(), 012_345_678); let more_precise = SecfracDigitsStr::from_str("876543210999")?; assert_eq!(more_precise.nanoseconds(), 876_543_210);
#[must_use]pub fn nanoseconds_digits(&self) -> Option<&SecfracDigitsStr>
[src]
Returns a nanoseconds precision substring if there are enough digits.
Examples
let not_precise = SecfracDigitsStr::from_str("1234")?; assert_eq!(not_precise.nanoseconds_digits(), None); let precise = SecfracDigitsStr::from_str("012345678")?; assert_eq!(precise.nanoseconds_digits().unwrap(), "012345678"); let more_precise = SecfracDigitsStr::from_str("012345678901")?; assert_eq!(more_precise.nanoseconds_digits().unwrap(), "012345678");
#[must_use]pub fn nanoseconds_digits_mut(&mut self) -> Option<&mut SecfracDigitsStr>
[src]
Returns a nanoseconds precision substring if there are enough digits.
Examples
let mut buf = "012345678901".to_owned(); let digits = SecfracDigitsStr::from_mut_str(&mut buf)?; assert_eq!(digits.as_str(), "012345678901"); digits.nanoseconds_digits_mut().unwrap().fill_with_zero(); assert_eq!(digits.as_str(), "000000000901");
#[must_use]pub fn nanoseconds_bytes_fixed_len(&self) -> Option<&[u8; 9]>
[src]
Returns a nanoseconds digits as a fixed bytes slice, if there are enough digits.
Examples
let not_precise = SecfracDigitsStr::from_str("1234")?; assert_eq!(not_precise.nanoseconds_bytes_fixed_len(), None); let precise = SecfracDigitsStr::from_str("012345678")?; assert_eq!(precise.nanoseconds_bytes_fixed_len(), Some(b"012345678")); let more_precise = SecfracDigitsStr::from_str("012345678901")?; assert_eq!(more_precise.nanoseconds_bytes_fixed_len(), Some(b"012345678"));
pub fn fill_with_zero(&mut self)
[src]
Fills the secfrac part with zero.
Examples
let mut buf = "1234".to_owned(); let secfrac = SecfracDigitsStr::from_mut_str(&mut buf)?; assert_eq!(secfrac.as_str(), "1234"); secfrac.fill_with_zero(); assert_eq!(secfrac.as_str(), "0000"); assert_eq!(buf, "0000");
pub fn fill_with_nine(&mut self)
[src]
Fills the secfrac part with zero.
Examples
let mut buf = "1234".to_owned(); let secfrac = SecfracDigitsStr::from_mut_str(&mut buf)?; assert_eq!(secfrac.as_str(), "1234"); secfrac.fill_with_nine(); assert_eq!(secfrac.as_str(), "9999"); assert_eq!(buf, "9999");
Trait Implementations
impl AsMut<SecfracDigitsStr> for SecfracDigitsString
[src]
fn as_mut(&mut self) -> &mut SecfracDigitsStr
[src]
impl AsRef<[u8]> for SecfracDigitsString
[src]
impl AsRef<SecfracDigitsStr> for SecfracDigitsString
[src]
fn as_ref(&self) -> &SecfracDigitsStr
[src]
impl AsRef<str> for SecfracDigitsString
[src]
impl Borrow<SecfracDigitsStr> for SecfracDigitsString
[src]
fn borrow(&self) -> &SecfracDigitsStr
[src]
impl BorrowMut<SecfracDigitsStr> for SecfracDigitsString
[src]
fn borrow_mut(&mut self) -> &mut SecfracDigitsStr
[src]
impl Clone for SecfracDigitsString
[src]
fn clone(&self) -> SecfracDigitsString
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SecfracDigitsString
[src]
impl Deref for SecfracDigitsString
[src]
type Target = SecfracDigitsStr
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for SecfracDigitsString
[src]
impl<'de> Deserialize<'de> for SecfracDigitsString
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Display for SecfracDigitsString
[src]
impl Eq for SecfracDigitsString
[src]
impl<'_> From<&'_ SecfracDigitsStr> for SecfracDigitsString
[src]
fn from(v: &SecfracDigitsStr) -> Self
[src]
impl From<SecfracDigitsString> for Vec<u8>
[src]
fn from(v: SecfracDigitsString) -> Vec<u8>
[src]
impl From<SecfracDigitsString> for String
[src]
fn from(v: SecfracDigitsString) -> String
[src]
impl FromStr for SecfracDigitsString
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for SecfracDigitsString
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for SecfracDigitsString
[src]
fn cmp(&self, other: &SecfracDigitsString) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'_> PartialEq<&'_ [u8]> for SecfracDigitsString
[src]
impl<'_> PartialEq<&'_ SecfracDigitsStr> for SecfracDigitsString
[src]
fn eq(&self, o: &&SecfracDigitsStr) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ SecfracDigitsString> for SecfracDigitsString
[src]
fn eq(&self, o: &&SecfracDigitsString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ SecfracDigitsString> for str
[src]
fn eq(&self, o: &&SecfracDigitsString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ SecfracDigitsString> for [u8]
[src]
fn eq(&self, o: &&SecfracDigitsString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ str> for SecfracDigitsString
[src]
impl PartialEq<[u8]> for SecfracDigitsString
[src]
impl<'_> PartialEq<[u8]> for &'_ SecfracDigitsString
[src]
impl PartialEq<SecfracDigitsStr> for SecfracDigitsString
[src]
fn eq(&self, o: &SecfracDigitsStr) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<SecfracDigitsString> for SecfracDigitsString
[src]
fn eq(&self, other: &SecfracDigitsString) -> bool
[src]
fn ne(&self, other: &SecfracDigitsString) -> bool
[src]
impl<'_> PartialEq<SecfracDigitsString> for &'_ SecfracDigitsString
[src]
fn eq(&self, o: &SecfracDigitsString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<SecfracDigitsString> for SecfracDigitsStr
[src]
fn eq(&self, o: &SecfracDigitsString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<SecfracDigitsString> for &'_ SecfracDigitsStr
[src]
fn eq(&self, o: &SecfracDigitsString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<SecfracDigitsString> for str
[src]
fn eq(&self, o: &SecfracDigitsString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<SecfracDigitsString> for &'_ str
[src]
fn eq(&self, o: &SecfracDigitsString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<SecfracDigitsString> for [u8]
[src]
fn eq(&self, o: &SecfracDigitsString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<SecfracDigitsString> for &'_ [u8]
[src]
fn eq(&self, o: &SecfracDigitsString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<str> for SecfracDigitsString
[src]
impl<'_> PartialEq<str> for &'_ SecfracDigitsString
[src]
impl<'_> PartialOrd<&'_ [u8]> for SecfracDigitsString
[src]
fn partial_cmp(&self, o: &&[u8]) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<&'_ SecfracDigitsStr> for SecfracDigitsString
[src]
fn partial_cmp(&self, o: &&SecfracDigitsStr) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<&'_ SecfracDigitsString> for SecfracDigitsString
[src]
fn partial_cmp(&self, o: &&SecfracDigitsString) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<&'_ SecfracDigitsString> for str
[src]
fn partial_cmp(&self, o: &&SecfracDigitsString) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<&'_ SecfracDigitsString> for [u8]
[src]
fn partial_cmp(&self, o: &&SecfracDigitsString) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<&'_ str> for SecfracDigitsString
[src]
fn partial_cmp(&self, o: &&str) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<[u8]> for SecfracDigitsString
[src]
fn partial_cmp(&self, o: &[u8]) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<[u8]> for &'_ SecfracDigitsString
[src]
fn partial_cmp(&self, o: &[u8]) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<SecfracDigitsStr> for SecfracDigitsString
[src]
fn partial_cmp(&self, o: &SecfracDigitsStr) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<SecfracDigitsString> for SecfracDigitsString
[src]
fn partial_cmp(&self, other: &SecfracDigitsString) -> Option<Ordering>
[src]
fn lt(&self, other: &SecfracDigitsString) -> bool
[src]
fn le(&self, other: &SecfracDigitsString) -> bool
[src]
fn gt(&self, other: &SecfracDigitsString) -> bool
[src]
fn ge(&self, other: &SecfracDigitsString) -> bool
[src]
impl<'_> PartialOrd<SecfracDigitsString> for &'_ SecfracDigitsString
[src]
fn partial_cmp(&self, o: &SecfracDigitsString) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<SecfracDigitsString> for SecfracDigitsStr
[src]
fn partial_cmp(&self, o: &SecfracDigitsString) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<SecfracDigitsString> for &'_ SecfracDigitsStr
[src]
fn partial_cmp(&self, o: &SecfracDigitsString) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<SecfracDigitsString> for str
[src]
fn partial_cmp(&self, o: &SecfracDigitsString) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<SecfracDigitsString> for &'_ str
[src]
fn partial_cmp(&self, o: &SecfracDigitsString) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<SecfracDigitsString> for [u8]
[src]
fn partial_cmp(&self, o: &SecfracDigitsString) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<SecfracDigitsString> for &'_ [u8]
[src]
fn partial_cmp(&self, o: &SecfracDigitsString) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<str> for SecfracDigitsString
[src]
fn partial_cmp(&self, o: &str) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<str> for &'_ SecfracDigitsString
[src]
fn partial_cmp(&self, o: &str) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for SecfracDigitsString
[src]
impl StructuralEq for SecfracDigitsString
[src]
impl StructuralPartialEq for SecfracDigitsString
[src]
impl<'_> TryFrom<&'_ [u8]> for SecfracDigitsString
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(v: &[u8]) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ str> for SecfracDigitsString
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(v: &str) -> Result<Self, Self::Error>
[src]
impl TryFrom<String> for SecfracDigitsString
[src]
type Error = ConversionError<String>
The type returned in the event of a conversion error.
fn try_from(v: String) -> Result<Self, Self::Error>
[src]
impl TryFrom<Vec<u8>> for SecfracDigitsString
[src]
Auto Trait Implementations
impl RefUnwindSafe for SecfracDigitsString
impl Send for SecfracDigitsString
impl Sync for SecfracDigitsString
impl Unpin for SecfracDigitsString
impl UnwindSafe for SecfracDigitsString
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,