pub struct ScalarProductElement {
pub key: HashCode,
pub value: i64,
}Expand description
Одна координата вектора: значения с одинаковым key у двух сторон
перемножаются, остальные в произведение не входят.
Fields§
§key: HashCodeИмя координаты. Стороны сопоставляют координаты по нему.
value: i64Значение координаты.
Implementations§
Trait Implementations§
Source§impl Clone for ScalarProductElement
impl Clone for ScalarProductElement
Source§fn clone(&self) -> ScalarProductElement
fn clone(&self) -> ScalarProductElement
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 moreimpl Copy for ScalarProductElement
Source§impl Debug for ScalarProductElement
impl Debug for ScalarProductElement
impl Eq for ScalarProductElement
Source§impl PartialEq for ScalarProductElement
impl PartialEq for ScalarProductElement
impl StructuralPartialEq for ScalarProductElement
Auto Trait Implementations§
impl Freeze for ScalarProductElement
impl RefUnwindSafe for ScalarProductElement
impl Send for ScalarProductElement
impl Sync for ScalarProductElement
impl Unpin for ScalarProductElement
impl UnsafeUnpin for ScalarProductElement
impl UnwindSafe for ScalarProductElement
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