#[non_exhaustive]pub struct SubgraphView<'s> {
pub id: usize,
pub parent: Option<usize>,
pub label: &'s str,
pub x: usize,
pub y: usize,
pub width: usize,
pub height: usize,
pub border: SubgraphBorder,
pub color: CellColor,
pub label_position: LabelPosition,
}Expand description
One cluster of the scene.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: usizeSubgraph id.
parent: Option<usize>Immediate parent cluster, if nested.
label: &'s strCluster label.
x: usizeLeft edge, in cells.
y: usizeTop edge, in rows.
width: usizeWidth in cells.
height: usizeHeight in rows.
border: SubgraphBorderResolved border style.
color: CellColorResolved border color.
label_position: LabelPositionResolved label position.
Trait Implementations§
Source§impl<'s> Clone for SubgraphView<'s>
impl<'s> Clone for SubgraphView<'s>
Source§fn clone(&self) -> SubgraphView<'s>
fn clone(&self) -> SubgraphView<'s>
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<'s> Copy for SubgraphView<'s>
Auto Trait Implementations§
impl<'s> Freeze for SubgraphView<'s>
impl<'s> RefUnwindSafe for SubgraphView<'s>
impl<'s> Send for SubgraphView<'s>
impl<'s> Sync for SubgraphView<'s>
impl<'s> Unpin for SubgraphView<'s>
impl<'s> UnsafeUnpin for SubgraphView<'s>
impl<'s> UnwindSafe for SubgraphView<'s>
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