pub struct EmbeddingIdGenerators { /* private fields */ }Expand description
Holds the per-kind id generators used to mint request, run, and event ids for a single embedding execution.
Implementations§
Source§impl EmbeddingIdGenerators
impl EmbeddingIdGenerators
Sourcepub fn deterministic(start: u64) -> Self
pub fn deterministic(start: u64) -> Self
Builds id generators seeded deterministically from start.
Trait Implementations§
Source§impl Clone for EmbeddingIdGenerators
impl Clone for EmbeddingIdGenerators
Source§fn clone(&self) -> EmbeddingIdGenerators
fn clone(&self) -> EmbeddingIdGenerators
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 EmbeddingIdGenerators
impl RefUnwindSafe for EmbeddingIdGenerators
impl Send for EmbeddingIdGenerators
impl Sync for EmbeddingIdGenerators
impl Unpin for EmbeddingIdGenerators
impl UnsafeUnpin for EmbeddingIdGenerators
impl UnwindSafe for EmbeddingIdGenerators
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