pub struct SelectorGroup {
pub join: Option<JoinName>,
pub selectors: Vec<SubsystemSelector>,
pub retained: Vec<RetainedStatement>,
}Expand description
One group of selectors whose bus sets intersect across selector types.
Fields§
§join: Option<JoinName>How the file stated the group: absent for the implicit group, which
holds the selectors stated outside any JOIN, and present for a JOIN
block whether or not that block states a name. Two JOIN blocks with
no name are two groups, and their bus sets union rather than intersect.
selectors: Vec<SubsystemSelector>§retained: Vec<RetainedStatement>Statements read while this JOIN was open that are outside the
grammar, kept as their trimmed line: a nested JOIN, a selector line
whose values are not numbers, and any other unrecognized line. The
writer states them inside the group, before its END, so they read
back into the same group. The implicit group holds none, because a line
stated outside any JOIN is kept on the subsystem.
Trait Implementations§
Source§impl Clone for SelectorGroup
impl Clone for SelectorGroup
Source§fn clone(&self) -> SelectorGroup
fn clone(&self) -> SelectorGroup
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 moreSource§impl Debug for SelectorGroup
impl Debug for SelectorGroup
Source§impl Default for SelectorGroup
impl Default for SelectorGroup
Source§fn default() -> SelectorGroup
fn default() -> SelectorGroup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SelectorGroup
impl<'de> Deserialize<'de> for SelectorGroup
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 SelectorGroup
impl JsonSchema for SelectorGroup
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 moreSource§impl PartialEq for SelectorGroup
impl PartialEq for SelectorGroup
Source§fn eq(&self, other: &SelectorGroup) -> bool
fn eq(&self, other: &SelectorGroup) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SelectorGroup
impl Serialize for SelectorGroup
impl StructuralPartialEq for SelectorGroup
Auto Trait Implementations§
impl Freeze for SelectorGroup
impl RefUnwindSafe for SelectorGroup
impl Send for SelectorGroup
impl Sync for SelectorGroup
impl Unpin for SelectorGroup
impl UnsafeUnpin for SelectorGroup
impl UnwindSafe for SelectorGroup
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