pub struct EdgeView<'a> {
pub src: &'a [u32],
pub dst: &'a [u32],
pub color: Option<&'a [u8]>,
pub palette: &'static [[u8; 4]],
pub directed: bool,
pub version: u64,
}Expand description
Edges for rendering. Endpoints are indices into the point view’s positions.
Fields§
§src: &'a [u32]Source node of each edge.
dst: &'a [u32]Destination node of each edge.
color: Option<&'a [u8]>One palette index per edge. None colours every edge palette[0].
palette: &'static [[u8; 4]]RGBA colours that the edges index.
directed: boolWhether the edges are directed.
version: u64Version of the graph. It moves whenever the edges, their colours or their direction change.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EdgeView<'a>
impl<'a> RefUnwindSafe for EdgeView<'a>
impl<'a> Send for EdgeView<'a>
impl<'a> Sync for EdgeView<'a>
impl<'a> Unpin for EdgeView<'a>
impl<'a> UnsafeUnpin for EdgeView<'a>
impl<'a> UnwindSafe for EdgeView<'a>
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