pub struct LoraVector {
pub dimension: usize,
pub values: VectorValues,
}Expand description
A first-class VECTOR value.
Fields§
§dimension: usize§values: VectorValuesImplementations§
Source§impl LoraVector
impl LoraVector
Sourcepub fn coordinate_type(&self) -> VectorCoordinateType
pub fn coordinate_type(&self) -> VectorCoordinateType
Total-order comparison key. Sorting vectors is mostly meaningful
for tie-breaking inside ORDER BY — the key orders first by
coordinate type tag, then by dimension, then by the coordinates
rendered as f64 (matches as_f64_vec). Callers that need a
stable key for DISTINCT/grouping should use to_key_string.
Sourcepub fn to_key_string(&self) -> String
pub fn to_key_string(&self) -> String
Canonical string form used for grouping / DISTINCT / UNION keys, and for the fallback sort comparator. Not meant for user display.
Source§impl LoraVector
impl LoraVector
Sourcepub fn try_new(
raw: Vec<RawCoordinate>,
dimension: i64,
coordinate_type: VectorCoordinateType,
) -> Result<Self, VectorBuildError>
pub fn try_new( raw: Vec<RawCoordinate>, dimension: i64, coordinate_type: VectorCoordinateType, ) -> Result<Self, VectorBuildError>
Build a vector from raw numeric coordinates, applying validation
and coordinate-type coercion. Single entry point used by both
vector() in Cypher and the binding-side constructors.
Trait Implementations§
Source§impl Clone for LoraVector
impl Clone for LoraVector
Source§fn clone(&self) -> LoraVector
fn clone(&self) -> LoraVector
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 LoraVector
impl Debug for LoraVector
Source§impl Display for LoraVector
impl Display for LoraVector
Source§impl PartialEq for LoraVector
impl PartialEq for LoraVector
impl StructuralPartialEq for LoraVector
Auto Trait Implementations§
impl Freeze for LoraVector
impl RefUnwindSafe for LoraVector
impl Send for LoraVector
impl Sync for LoraVector
impl Unpin for LoraVector
impl UnsafeUnpin for LoraVector
impl UnwindSafe for LoraVector
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