pub struct LocalStubEmbedder;Expand description
Deterministic BLAKE3-based stub embedder.
See the module docs for the full contract. Construct via
LocalStubEmbedder::new (zero-sized; no state is held).
Implementations§
Trait Implementations§
Source§impl Clone for LocalStubEmbedder
impl Clone for LocalStubEmbedder
Source§fn clone(&self) -> LocalStubEmbedder
fn clone(&self) -> LocalStubEmbedder
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 moreSource§impl Debug for LocalStubEmbedder
impl Debug for LocalStubEmbedder
Source§impl Default for LocalStubEmbedder
impl Default for LocalStubEmbedder
Source§fn default() -> LocalStubEmbedder
fn default() -> LocalStubEmbedder
Returns the “default value” for a type. Read more
Source§impl Embedder for LocalStubEmbedder
impl Embedder for LocalStubEmbedder
Source§fn backend_id(&self) -> &str
fn backend_id(&self) -> &str
Stable identifier for this backend (e.g.,
"stub:v1",
"onnx:minilm-l6").Source§fn dim(&self) -> usize
fn dim(&self) -> usize
Output dimensionality. Must be stable for a given
backend_id.impl Copy for LocalStubEmbedder
Auto Trait Implementations§
impl Freeze for LocalStubEmbedder
impl RefUnwindSafe for LocalStubEmbedder
impl Send for LocalStubEmbedder
impl Sync for LocalStubEmbedder
impl Unpin for LocalStubEmbedder
impl UnsafeUnpin for LocalStubEmbedder
impl UnwindSafe for LocalStubEmbedder
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