pub struct Inside {
pub groups: Vec<Group>,
pub items: Vec<Item>,
pub links: Vec<Link>,
pub findings: Counts,
pub layouts: Vec<Layout>,
}Expand description
Inside one substation: its equipment and the connectivity nodes (else topological nodes) their terminals meet at, by voltage level; equipment reaching other nodes (lines, mostly) as an item with its far ends.
Fields§
§groups: Vec<Group>§items: Vec<Item>§links: Vec<Link>§findings: CountsFindings on the substation’s node that no item stands for: the substation, its voltage levels and bays, …
layouts: Vec<Layout>Positions from each DL diagram that draws its items, by item index.
Implementations§
Source§impl Inside
impl Inside
Sourcepub fn layout_json(&self, l: &Layout) -> Value
pub fn layout_json(&self, l: &Layout) -> Value
A layout of its items, as the view takes it: positions and sizes by item, routes by terminal.
Sourcepub fn layout_from_json(&self, v: &Value) -> Layout
pub fn layout_from_json(&self, v: &Value) -> Layout
A layout of its items from the view’s JSON (as Inside::layout_json
writes it); what names no item or terminal of it is left out.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Inside
impl Freeze for Insidewhere
*const u8 is !null: Freeze,
PhantomData<Group>: Freeze,
PhantomData<Item>: Freeze,
PhantomData<Link>: Freeze,
PhantomData<Layout>: Freeze,
impl Move for Inside
impl RefUnwindSafe for Inside
impl Send for Insidewhere
RawVecInner: Send,
&'static str: Send,
NodeRef<Owned, usize, (f64, f64), LeafOrInternal>: Send,
BoxRaw<(usize, (f64, f64))>: Send,
NodeRef<Owned, usize, Vec<(f64, f64)>, LeafOrInternal>: Send,
BoxRaw<(usize, Vec<(f64, f64)>)>: Send,
NodeRef<Owned, usize, i32, LeafOrInternal>: Send,
BoxRaw<(usize, i32)>: Send,
impl Sync for Inside
impl Unpin for Insidewhere
*const u8 is !null: Unpin,
&'static str: Unpin,
*const LeafNode<usize, (f64, f64)> is !null: Unpin,
Box<(usize, (f64, f64))>: Unpin,
*const LeafNode<usize, Vec<(f64, f64)>> is !null: Unpin,
Box<(usize, Vec<(f64, f64)>)>: Unpin,
*const LeafNode<usize, i32> is !null: Unpin,
Box<(usize, i32)>: Unpin,
impl UnsafeUnpin for Insidewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Group>: UnsafeUnpin,
PhantomData<Item>: UnsafeUnpin,
PhantomData<Link>: UnsafeUnpin,
PhantomData<Layout>: UnsafeUnpin,
impl UnwindSafe for Insidewhere
RawVecInner: UnwindSafe,
&'static str: UnwindSafe,
BTreeMap<usize, (f64, f64)>: UnwindSafe,
BTreeMap<usize, Vec<(f64, f64)>>: UnwindSafe,
BTreeMap<usize, i32>: UnwindSafe,
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