Struct EmbeddingDimension
pub struct EmbeddingDimension(/* private fields */);Implementations§
§impl EmbeddingDimension
impl EmbeddingDimension
pub fn new(value: usize) -> Result<EmbeddingDimension, EmbeddingError>
pub const fn get(self) -> usize
Trait Implementations§
§impl Clone for EmbeddingDimension
impl Clone for EmbeddingDimension
§fn clone(&self) -> EmbeddingDimension
fn clone(&self) -> EmbeddingDimension
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for EmbeddingDimension
impl Debug for EmbeddingDimension
§impl Hash for EmbeddingDimension
impl Hash for EmbeddingDimension
§impl Ord for EmbeddingDimension
impl Ord for EmbeddingDimension
§fn cmp(&self, other: &EmbeddingDimension) -> Ordering
fn cmp(&self, other: &EmbeddingDimension) -> Ordering
1.21.0 · 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
§impl PartialEq for EmbeddingDimension
impl PartialEq for EmbeddingDimension
§impl PartialOrd for EmbeddingDimension
impl PartialOrd for EmbeddingDimension
impl Copy for EmbeddingDimension
impl Eq for EmbeddingDimension
impl StructuralPartialEq for EmbeddingDimension
Auto Trait Implementations§
impl Freeze for EmbeddingDimension
impl RefUnwindSafe for EmbeddingDimension
impl Send for EmbeddingDimension
impl Sync for EmbeddingDimension
impl Unpin for EmbeddingDimension
impl UnsafeUnpin for EmbeddingDimension
impl UnwindSafe for EmbeddingDimension
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