pub struct FloatDataType {
pub precision: FloatPrecision,
}Expand description
Approximate floating-point numeric type.
Maps to: REAL/DOUBLE PRECISION (PostgreSQL), REAL/FLOAT (SQL Server),
FLOAT/DOUBLE (Snowflake, Databricks), Float32/Float64 (ClickHouse).
§Example
use razeri_plugin_contract::DataType;
// Single precision (REAL)
let real = DataType::float();
// Double precision (DOUBLE)
let double = DataType::double();Fields§
§precision: FloatPrecisionPrecision level (Single or Double).
Implementations§
Trait Implementations§
Source§impl Clone for FloatDataType
impl Clone for FloatDataType
Source§fn clone(&self) -> FloatDataType
fn clone(&self) -> FloatDataType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FloatDataType
impl Debug for FloatDataType
impl Eq for FloatDataType
Source§impl Hash for FloatDataType
impl Hash for FloatDataType
Source§impl PartialEq for FloatDataType
impl PartialEq for FloatDataType
impl StructuralPartialEq for FloatDataType
Auto Trait Implementations§
impl Freeze for FloatDataType
impl RefUnwindSafe for FloatDataType
impl Send for FloatDataType
impl Sync for FloatDataType
impl Unpin for FloatDataType
impl UnsafeUnpin for FloatDataType
impl UnwindSafe for FloatDataType
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