pub struct SchematicView {
pub sheet_name: Option<String>,
pub components: Vec<ComponentView>,
pub nets: Vec<NetView>,
pub ports: Vec<PortView>,
pub power_symbols: Vec<PowerView>,
pub wires: Vec<WireView>,
pub labels: Vec<LabelView>,
pub junctions: Vec<JunctionView>,
/* private fields */
}Expand description
High-level schematic document view with connectivity
Fields§
§sheet_name: Option<String>Sheet name/title
components: Vec<ComponentView>All components
nets: Vec<NetView>All nets (computed from connectivity)
ports: Vec<PortView>All ports
power_symbols: Vec<PowerView>All power symbols
wires: Vec<WireView>All wires
labels: Vec<LabelView>All net labels
junctions: Vec<JunctionView>All junctions
Implementations§
Source§impl SchematicView
impl SchematicView
Sourcepub fn from_schdoc(doc: &SchDoc) -> Self
pub fn from_schdoc(doc: &SchDoc) -> Self
Build a schematic view from a SchDoc
Sourcepub fn get_component(&self, designator: &str) -> Option<&ComponentView>
pub fn get_component(&self, designator: &str) -> Option<&ComponentView>
Get component by designator
Sourcepub fn power_nets(&self) -> Vec<&str>
pub fn power_nets(&self) -> Vec<&str>
Get all power net names
Sourcepub fn ground_nets(&self) -> Vec<&str>
pub fn ground_nets(&self) -> Vec<&str>
Get all ground net names
Sourcepub fn find_components_by_part(&self, pattern: &str) -> Vec<&ComponentView>
pub fn find_components_by_part(&self, pattern: &str) -> Vec<&ComponentView>
Find components by part name pattern
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchematicView
impl RefUnwindSafe for SchematicView
impl Send for SchematicView
impl Sync for SchematicView
impl Unpin for SchematicView
impl UnwindSafe for SchematicView
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> 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