pub struct Instance<G>where
G: IndexGraph,{
pub graph: G,
pub weights: Vec<f64>,
pub coordinates: Vec<Vec<f64>>,
pub edgeattrs: Vec<Vec<EdgeAttr>>,
}
Expand description
An SteinLib instance.
Fields§
§graph: G
The graph.
weights: Vec<f64>
The edge weights.
coordinates: Vec<Vec<f64>>
The node coordinates.
edgeattrs: Vec<Vec<EdgeAttr>>
The edge attributes.
Auto Trait Implementations§
impl<G> RefUnwindSafe for Instance<G>where G: RefUnwindSafe,
impl<G> Send for Instance<G>where G: Send,
impl<G> Sync for Instance<G>where G: Sync,
impl<G> Unpin for Instance<G>where G: Unpin,
impl<G> UnwindSafe for Instance<G>where G: 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