pub struct Subsystem {
pub name: String,
pub groups: Vec<SelectorGroup>,
pub retained: Vec<RetainedStatement>,
}Expand description
One named subsystem: the union of its selector groups.
Fields§
§name: String§groups: Vec<SelectorGroup>The groups whose bus sets are unioned. The implicit group, holding the
selectors stated outside any JOIN, comes first when it has any.
retained: Vec<RetainedStatement>Statements inside this subsystem, and outside any JOIN group, that
are outside the grammar, kept as their trimmed line.
Implementations§
Source§impl Subsystem
impl Subsystem
Sourcepub fn select_buses(&self, net: &BalancedNetwork) -> BTreeSet<BusId>
pub fn select_buses(&self, net: &BalancedNetwork) -> BTreeSet<BusId>
The buses of net this subsystem names.
Within one group the buses matching each selector family present are unioned within the family and intersected across the families, and the groups of a subsystem are unioned. A group with no selector, and a subsystem with no group, names no bus.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Subsystem
impl<'de> Deserialize<'de> for Subsystem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Subsystem
impl JsonSchema for Subsystem
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Subsystem
Auto Trait Implementations§
impl Freeze for Subsystem
impl RefUnwindSafe for Subsystem
impl Send for Subsystem
impl Sync for Subsystem
impl Unpin for Subsystem
impl UnsafeUnpin for Subsystem
impl UnwindSafe for Subsystem
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