pub struct LayoutNode {
pub id: usize,
pub comp_id: String,
pub comp: Option<ComponentDef>,
pub is_anchor: bool,
}Expand description
A node in the layout graph (one per component + special anchor nodes).
Fields§
§id: usizeIndex into LayoutGraph::nodes.
comp_id: StringComponent ID (or "__in", "__out", "__vcc", "__gnd" for anchors).
comp: Option<ComponentDef>Component definition (None for anchor nodes).
is_anchor: boolWhether this is an anchor node (in, out, vcc, gnd).
Trait Implementations§
Source§impl Clone for LayoutNode
impl Clone for LayoutNode
Source§fn clone(&self) -> LayoutNode
fn clone(&self) -> LayoutNode
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for LayoutNode
impl !Send for LayoutNode
impl !Sync for LayoutNode
impl !UnwindSafe for LayoutNode
impl Freeze for LayoutNode
impl Unpin for LayoutNode
impl UnsafeUnpin for LayoutNode
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