pub struct VectorIndexDescriptor { /* private fields */ }Implementations§
Source§impl VectorIndexDescriptor
impl VectorIndexDescriptor
Source§impl VectorIndexDescriptor
impl VectorIndexDescriptor
Sourcepub fn new(
name: String,
target: VectorIndexTarget,
dimension: VectorDimension,
distance: VectorDistance,
backend: VectorIndexBackend,
schema_digest: [u8; 32],
) -> Result<Self>
pub fn new( name: String, target: VectorIndexTarget, dimension: VectorDimension, distance: VectorDistance, backend: VectorIndexBackend, schema_digest: [u8; 32], ) -> Result<Self>
Constructs a validated definition. The facade must resolve the target, dimension and digest against its pinned canonical schema before use.
pub fn name(&self) -> &str
pub fn target(&self) -> &VectorIndexTarget
pub const fn dimension(&self) -> VectorDimension
pub const fn distance(&self) -> VectorDistance
pub const fn backend(&self) -> VectorIndexBackend
pub const fn schema_digest(&self) -> &[u8; 32]
pub fn retained_bytes(&self) -> usize
Trait Implementations§
Source§impl Clone for VectorIndexDescriptor
impl Clone for VectorIndexDescriptor
Source§impl Debug for VectorIndexDescriptor
impl Debug for VectorIndexDescriptor
impl Eq for VectorIndexDescriptor
Source§impl PartialEq for VectorIndexDescriptor
impl PartialEq for VectorIndexDescriptor
impl StructuralPartialEq for VectorIndexDescriptor
Auto Trait Implementations§
impl Freeze for VectorIndexDescriptor
impl RefUnwindSafe for VectorIndexDescriptor
impl Send for VectorIndexDescriptor
impl Sync for VectorIndexDescriptor
impl Unpin for VectorIndexDescriptor
impl UnsafeUnpin for VectorIndexDescriptor
impl UnwindSafe for VectorIndexDescriptor
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