pub struct SceneEdge {
pub a: NodeIndex,
pub b: NodeIndex,
pub color: [f32; 4],
pub width: f32,
pub opacity: f32,
pub label: LabelId,
}Fields§
§a: NodeIndex§b: NodeIndex§color: [f32; 4]§width: f32§opacity: f32§label: LabelIdInterned label text, or EMPTY_LABEL for an unlabelled edge. A
LabelId and not a String: SceneEdge must stay Copy with no heap
field, or the zero-alloc guarantee on the per-frame path (see
tests/zero_alloc.rs) breaks.
Trait Implementations§
impl Copy for SceneEdge
impl StructuralPartialEq for SceneEdge
Auto Trait Implementations§
impl Freeze for SceneEdge
impl RefUnwindSafe for SceneEdge
impl Send for SceneEdge
impl Sync for SceneEdge
impl Unpin for SceneEdge
impl UnsafeUnpin for SceneEdge
impl UnwindSafe for SceneEdge
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