#[non_exhaustive]pub struct DenseVector {
pub values: Vec<f32>,
/* private fields */
}Expand description
A dense vector.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.values: Vec<f32>Required. The values of the vector.
Implementations§
Source§impl DenseVector
impl DenseVector
pub fn new() -> Self
Sourcepub fn set_values<T, V>(self, v: T) -> Self
pub fn set_values<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for DenseVector
impl Clone for DenseVector
Source§fn clone(&self) -> DenseVector
fn clone(&self) -> DenseVector
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 moreSource§impl Debug for DenseVector
impl Debug for DenseVector
Source§impl Default for DenseVector
impl Default for DenseVector
Source§fn default() -> DenseVector
fn default() -> DenseVector
Returns the “default value” for a type. Read more
Source§impl Message for DenseVector
impl Message for DenseVector
Source§impl PartialEq for DenseVector
impl PartialEq for DenseVector
impl StructuralPartialEq for DenseVector
Auto Trait Implementations§
impl Freeze for DenseVector
impl RefUnwindSafe for DenseVector
impl Send for DenseVector
impl Sync for DenseVector
impl Unpin for DenseVector
impl UnsafeUnpin for DenseVector
impl UnwindSafe for DenseVector
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