#[repr(transparent)]pub struct VectorId(pub u64);Expand description
Stable identifier for a vector within an index.
A transparent newtype over u64. IDs are assigned densely from 0 at build
time and remain valid across the soft-delete / buffered-insert update path,
so an ID never refers to a different vector once issued.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
impl Copy for VectorId
Source§impl<'de> Deserialize<'de> for VectorId
impl<'de> Deserialize<'de> for VectorId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VectorId
Source§impl Ord for VectorId
impl Ord for VectorId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for VectorId
impl PartialOrd for VectorId
impl StructuralPartialEq for VectorId
Auto Trait Implementations§
impl Freeze for VectorId
impl RefUnwindSafe for VectorId
impl Send for VectorId
impl Sync for VectorId
impl Unpin for VectorId
impl UnsafeUnpin for VectorId
impl UnwindSafe for VectorId
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