pub struct SparseValues {
pub indeces: Vec<u32>,
pub values: Vec<f32>,
}
Expand description
Vector sparse data. Represented as a list of indeices and a list of corresponded values, which must be the same length.
Fields§
§indeces: Vec<u32>
Indecies.
values: Vec<f32>
Values.
Trait Implementations§
Source§impl Clone for SparseValues
impl Clone for SparseValues
Source§fn clone(&self) -> SparseValues
fn clone(&self) -> SparseValues
Returns a copy 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 SparseValues
impl Debug for SparseValues
Source§impl Default for SparseValues
impl Default for SparseValues
Source§fn default() -> SparseValues
fn default() -> SparseValues
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SparseValues
impl<'de> Deserialize<'de> for SparseValues
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SparseValues
impl RefUnwindSafe for SparseValues
impl Send for SparseValues
impl Sync for SparseValues
impl Unpin for SparseValues
impl UnwindSafe for SparseValues
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