pub trait NativeDecimalType:
Copy
+ Eq
+ Ord
+ Default
+ Send
+ Sync
+ BigCast
+ Debug
+ Display
+ 'static {
const VALUES_TYPE: DecimalValueType;
// Required method
fn maybe_from(decimal_type: DecimalValue) -> Option<Self>;
}
Expand description
Type of decimal scalar values.
This trait is implemented by native integer types that can be used to store decimal values.
Required Associated Constants§
Sourceconst VALUES_TYPE: DecimalValueType
const VALUES_TYPE: DecimalValueType
The decimal value type corresponding to this native type.
Required Methods§
Sourcefn maybe_from(decimal_type: DecimalValue) -> Option<Self>
fn maybe_from(decimal_type: DecimalValue) -> Option<Self>
Attempts to convert a decimal value to this native type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.