pub struct FractionalPart(/* private fields */);Implementations§
Source§impl FractionalPart
impl FractionalPart
Sourcepub unsafe fn new_unchecked<S: ?Sized + AsRef<[u8]>>(s: &S) -> &Self
pub unsafe fn new_unchecked<S: ?Sized + AsRef<[u8]>>(s: &S) -> &Self
Creates a new fractional part from a byte slice.
§Safety
The input byte slice must be a valid fractional part lexical representation.
pub fn empty<'a>() -> &'a Self
pub fn as_str(&self) -> &str
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn is_empty(&self) -> bool
Sourcepub fn trimmed(&self) -> &FractionalPart
pub fn trimmed(&self) -> &FractionalPart
Returns the fractional part without the trailing zeros.
The returned fractional part may be empty.