Type Alias VectorVal

Source
pub type VectorVal = VectorInner<Box<[VectorItemType]>>;

Aliased Type§

pub struct VectorVal {
    pub(crate) inner: Box<[OrderedFloat<f32>]>,
}

Fields§

§inner: Box<[OrderedFloat<f32>]>

Implementations§

Source§

impl VectorVal

Source

pub fn from_text(text: &str, size: usize) -> Result<Self, String>

Source

pub fn to_ref(&self) -> VectorRef<'_>

Source§

impl VectorVal

Source

pub fn memcmp_deserialize( dimension: usize, de: &mut Deserializer<impl Buf>, ) -> Result<Self>

Trait Implementations§

Source§

impl Debug for VectorVal

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Vec<Finite32>> for VectorVal

Source§

fn from(value: Vec<Finite32>) -> Self

Converts to this type from the input type.
Source§

impl FromIterator<Finite32> for VectorVal

Source§

fn from_iter<I: IntoIterator<Item = Finite32>>(iter: I) -> Self

Creates a value from an iterator. Read more
Source§

impl HashKeyDe for VectorVal

Source§

fn deserialize(data_type: &DataType, buf: impl Buf) -> Self

Source§

impl Scalar for VectorVal

Source§

type ScalarRefType<'a> = VectorInner<&'a [OrderedFloat<f32>]>

Type for reference of Scalar
Source§

fn as_scalar_ref(&self) -> VectorRef<'_>

Get a reference to current scalar.
Source§

fn to_scalar_value(self) -> ScalarImpl

Source§

impl TryFrom<ScalarImpl> for VectorVal

Source§

type Error = ArrayError

The type returned in the event of a conversion error.
Source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.