#[non_exhaustive]pub struct RoundToScale {
pub scale: i32,
/* private fields */
}Expand description
This allows the data to change scale, for example if the source is 2 digits after the decimal point, specify round to scale value = 2. If for example the value needs to be converted to an integer, use round to scale value = 0.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scale: i32Required. Scale value to be used
Implementations§
Trait Implementations§
Source§impl Clone for RoundToScale
impl Clone for RoundToScale
Source§fn clone(&self) -> RoundToScale
fn clone(&self) -> RoundToScale
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoundToScale
impl Debug for RoundToScale
Source§impl Default for RoundToScale
impl Default for RoundToScale
Source§fn default() -> RoundToScale
fn default() -> RoundToScale
Returns the “default value” for a type. Read more
Source§impl Message for RoundToScale
impl Message for RoundToScale
Source§impl PartialEq for RoundToScale
impl PartialEq for RoundToScale
impl StructuralPartialEq for RoundToScale
Auto Trait Implementations§
impl Freeze for RoundToScale
impl RefUnwindSafe for RoundToScale
impl Send for RoundToScale
impl Sync for RoundToScale
impl Unpin for RoundToScale
impl UnwindSafe for RoundToScale
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