pub struct PartUsage {
pub is_individual: bool,
pub name: String,
pub type_name: String,
pub multiplicity: Option<String>,
pub ordered: bool,
pub subsets: Option<(String, Option<Node<Expression>>)>,
pub redefines: Option<String>,
pub value: Option<Node<Expression>>,
pub body: PartUsageBody,
pub name_span: Option<Span>,
pub type_ref_span: Option<Span>,
}Expand description
Part usage: part name : type multiplicity? ordered? (redefines|:>>)? value? body.
Fields§
§is_individual: bool§name: String§type_name: StringType after :, e.g. “Vehicle”, “AxleAssembly”.
multiplicity: Option<String>Multiplicity, e.g. Some(“[2]”).
ordered: bool§subsets: Option<(String, Option<Node<Expression>>)>Optional subsets feature and value expression.
redefines: Option<String>Redefines target, e.g. Some(“frontAxleAssembly”) or Some(“vehicle1::mass”).
value: Option<Node<Expression>>Value expression (= expr, default = expr, := expr).
body: PartUsageBody§name_span: Option<Span>Span of the usage name (for semantic tokens).
type_ref_span: Option<Span>Span of the type reference after : (for semantic tokens).
Trait Implementations§
impl Eq for PartUsage
impl StructuralPartialEq for PartUsage
Auto Trait Implementations§
impl Freeze for PartUsage
impl RefUnwindSafe for PartUsage
impl Send for PartUsage
impl Sync for PartUsage
impl Unpin for PartUsage
impl UnsafeUnpin for PartUsage
impl UnwindSafe for PartUsage
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