pub struct Triplet<T> {
pub row: usize,
pub col: usize,
pub val: T,
}Expand description
Sparse triplet entry (row, col, value).
Fields§
§row: usize§col: usize§val: TTrait Implementations§
impl<T: Copy> Copy for Triplet<T>
impl<T: PartialEq> StructuralPartialEq for Triplet<T>
Auto Trait Implementations§
impl<T> Freeze for Triplet<T>where
T: Freeze,
impl<T> RefUnwindSafe for Triplet<T>where
T: RefUnwindSafe,
impl<T> Send for Triplet<T>where
T: Send,
impl<T> Sync for Triplet<T>where
T: Sync,
impl<T> Unpin for Triplet<T>where
T: Unpin,
impl<T> UnsafeUnpin for Triplet<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Triplet<T>where
T: UnwindSafe,
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