Struct xsd_types::value::DecimalCheck
source · pub struct DecimalCheck { /* private fields */ }Expand description
Checks that a rational has a finite decimal representation.
This structure will cache some data to avoid reallocation. This way running the check for multiple rational numbers can be slightly more efficient.
Implementations§
source§impl DecimalCheck
impl DecimalCheck
pub fn is_decimal(&mut self, r: &BigRational) -> bool
Trait Implementations§
source§impl Default for DecimalCheck
impl Default for DecimalCheck
source§fn default() -> DecimalCheck
fn default() -> DecimalCheck
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecimalCheck
impl RefUnwindSafe for DecimalCheck
impl Send for DecimalCheck
impl Sync for DecimalCheck
impl Unpin for DecimalCheck
impl UnwindSafe for DecimalCheck
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more