pub struct ScannTrainedArtifactBytes { /* private fields */ }Expand description
Mmap/Arc-backed bytes for one validated global ScaNN generation. The full artifact is fingerprinted exactly once at open; query/merge compatibility reads the cached identity/config instead of rehashing the centroid plane.
Implementations§
Source§impl ScannTrainedArtifactBytes
impl ScannTrainedArtifactBytes
pub fn open(raw: OwnedBytes) -> Result<Self>
pub fn generation(&self) -> u64
pub fn artifact_id(&self) -> u64
pub fn config(&self) -> &ScannConfig
pub fn estimated_memory_bytes(&self) -> usize
Trait Implementations§
Source§impl Clone for ScannTrainedArtifactBytes
impl Clone for ScannTrainedArtifactBytes
Source§fn clone(&self) -> ScannTrainedArtifactBytes
fn clone(&self) -> ScannTrainedArtifactBytes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScannTrainedArtifactBytes
impl RefUnwindSafe for ScannTrainedArtifactBytes
impl Send for ScannTrainedArtifactBytes
impl Sync for ScannTrainedArtifactBytes
impl Unpin for ScannTrainedArtifactBytes
impl UnsafeUnpin for ScannTrainedArtifactBytes
impl UnwindSafe for ScannTrainedArtifactBytes
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more