Struct xsd_types::lexical::FractionalPart
source · 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.
Trait Implementations§
source§impl AsRef<[u8]> for FractionalPart
impl AsRef<[u8]> for FractionalPart
source§impl AsRef<str> for FractionalPart
impl AsRef<str> for FractionalPart
source§impl Hash for FractionalPart
impl Hash for FractionalPart
source§impl Ord for FractionalPart
impl Ord for FractionalPart
source§impl PartialEq for FractionalPart
impl PartialEq for FractionalPart
source§impl PartialOrd for FractionalPart
impl PartialOrd for FractionalPart
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more