pub type F64 = OrderedFloat<f64>;
Expand description
A 64-bit floating point type with total order.
Aliased Type§
struct F64(pub f64);
Fields§
§0: f64
Trait Implementations§
source§impl FromIntoArrow for F64
impl FromIntoArrow for F64
source§impl FromIntoArrow for F64
impl FromIntoArrow for F64
source§impl HashKeySer<'_> for F64
impl HashKeySer<'_> for F64
source§fn serialize_into(self, buf: impl BufMut)
fn serialize_into(self, buf: impl BufMut)
Serialize the scalar into the given buffer.
source§fn exact_size() -> Option<usize>
fn exact_size() -> Option<usize>
Returns
Some
if the serialized size is known for this scalar type.source§fn estimated_size(self) -> usize
fn estimated_size(self) -> usize
Returns the estimated serialized size for this scalar.
source§impl NativeType for F64
impl NativeType for F64
fn to_protobuf<T: Write>(self, output: &mut T) -> ArrayResult<usize>
source§impl PrimitiveArrayItemType for F64
impl PrimitiveArrayItemType for F64
source§fn erase_array_type(arr: PrimitiveArray<Self>) -> ArrayImpl
fn erase_array_type(arr: PrimitiveArray<Self>) -> ArrayImpl
A helper to convert a primitive array to
ArrayImpl
.source§fn try_into_array(arr: ArrayImpl) -> Option<PrimitiveArray<Self>>
fn try_into_array(arr: ArrayImpl) -> Option<PrimitiveArray<Self>>
A helper to convert
ArrayImpl
to self.source§fn try_into_array_ref(arr: &ArrayImpl) -> Option<&PrimitiveArray<Self>>
fn try_into_array_ref(arr: &ArrayImpl) -> Option<&PrimitiveArray<Self>>
A helper to convert
ArrayImpl
to self.source§fn array_type() -> ArrayType
fn array_type() -> ArrayType
Returns array type of the primitive array
fn to_protobuf<T: Write>(self, output: &mut T) -> ArrayResult<usize>
fn from_protobuf(cur: &mut Cursor<&[u8]>) -> ArrayResult<Self>
source§impl Scalar for F64
impl Scalar for F64
source§type ScalarRefType<'a> = OrderedFloat<f64>
type ScalarRefType<'a> = OrderedFloat<f64>
Type for reference of
Scalar
source§fn as_scalar_ref(&self) -> Self
fn as_scalar_ref(&self) -> Self
Get a reference to current scalar.
fn to_scalar_value(self) -> ScalarImpl
source§impl<'scalar> ScalarRef<'scalar> for F64
impl<'scalar> ScalarRef<'scalar> for F64
source§type ScalarType = OrderedFloat<f64>
type ScalarType = OrderedFloat<f64>
ScalarType
is the owned type of current ScalarRef
.source§fn to_owned_scalar(&self) -> Self
fn to_owned_scalar(&self) -> Self
Convert
ScalarRef
to an owned scalar.source§fn hash_scalar<H: Hasher>(&self, state: &mut H)
fn hash_scalar<H: Hasher>(&self, state: &mut H)
A wrapped hash function to get the hash value for this scaler.
source§impl ToBinary for F64
impl ToBinary for F64
fn to_binary_with_type(&self, ty: &DataType) -> Result<Bytes, ToBinaryError>
source§impl ToText for F64
impl ToText for F64
source§fn write<W: Write>(&self, f: &mut W) -> Result
fn write<W: Write>(&self, f: &mut W) -> Result
Write the text to the writer regardless of its data type Read more
source§fn write_with_type<W: Write>(&self, ty: &DataType, f: &mut W) -> Result
fn write_with_type<W: Write>(&self, ty: &DataType, f: &mut W) -> Result
Write the text to the writer according to its data type
source§fn to_text_with_type(&self, ty: &DataType) -> String
fn to_text_with_type(&self, ty: &DataType) -> String
Convert to text according to its data type
source§impl TryFrom<ScalarImpl> for F64
impl TryFrom<ScalarImpl> for F64
source§type Error = ArrayError
type Error = ArrayError
The type returned in the event of a conversion error.
source§fn try_from(val: ScalarImpl) -> ArrayResult<Self>
fn try_from(val: ScalarImpl) -> ArrayResult<Self>
Performs the conversion.
source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for F64
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for F64
source§type Error = ArrayError
type Error = ArrayError
The type returned in the event of a conversion error.
source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Performs the conversion.
source§impl<'a> WithDataType for &'a F64
impl<'a> WithDataType for &'a F64
source§fn default_data_type() -> DataType
fn default_data_type() -> DataType
Returns the most obvious
DataType
for the rust type.source§impl<'a> WithDataType for &'a mut F64
impl<'a> WithDataType for &'a mut F64
source§fn default_data_type() -> DataType
fn default_data_type() -> DataType
Returns the most obvious
DataType
for the rust type.source§impl WithDataType for Box<F64>
impl WithDataType for Box<F64>
source§fn default_data_type() -> DataType
fn default_data_type() -> DataType
Returns the most obvious
DataType
for the rust type.source§impl WithDataType for F64
impl WithDataType for F64
source§fn default_data_type() -> DataType
fn default_data_type() -> DataType
Returns the most obvious
DataType
for the rust type.