pub struct GraphNode {
pub w: f64,
pub h: f64,
pub lane: Option<usize>,
pub pin: (Option<f64>, Option<f64>),
}Expand description
A node: its box size, its swimlane, and optional pins (a layer, and a position across it; both pinned on every node → the grid layout).
Fields§
§w: f64§h: f64§lane: Option<usize>Index of the node’s swimlane (< LayeredParams::lanes), if any.
pin: (Option<f64>, Option<f64>)Pinned layer and pinned position (grid units in the explicit layout).
Trait Implementations§
Auto Trait Implementations§
impl Forget for GraphNode
impl Freeze for GraphNode
impl Move for GraphNode
impl RefUnwindSafe for GraphNode
impl Send for GraphNode
impl Sync for GraphNode
impl Unpin for GraphNode
impl UnsafeUnpin for GraphNode
impl UnwindSafe for GraphNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more