pub struct Group {
pub id: String,
pub label: String,
pub description: String,
pub reason: String,
pub effort: Effort,
pub role: Option<Role>,
pub class_ids: Vec<String>,
pub depends_on: Vec<Edge>,
pub rank: u32,
pub pivot: Option<u32>,
}Expand description
A merged, labelled group of shape classes. Produced by the grouping stage.
Fields§
§id: String§label: String§description: String§reason: String§effort: Effort§role: Option<Role>None until the ordering stage runs — role is an ordering-stage output.
class_ids: Vec<String>Member classes, ordered foundation-first by the ordering stage.
depends_on: Vec<Edge>Groups this group depends on: it consumes what they define. The contraction of the class graph onto groups.
rank: u32Position in the foundation-first ordering.
pivot: Option<u32>How many leading class_ids depend on nothing ranked later — the index
at which this group stops being a foundation and starts being a
consumer.
None unless the ordering had to break a cycle on this group. Nothing
splits the group: the number says where the group cannot be read as one
thing, and leaves what to do about it to the reader.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Group
impl<'de> Deserialize<'de> for Group
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
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl UnwindSafe for Group
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