pub struct PartDef {
pub definition_prefix: Option<DefinitionPrefix>,
pub is_individual: bool,
pub identification: Identification,
pub specializes: Option<String>,
pub specializes_span: Option<Span>,
pub body: PartDefBody,
}Expand description
Part definition: part def Identification (:> specializes)? Body.
Fields§
§definition_prefix: Option<DefinitionPrefix>Optional abstract or variation prefix (BNF BasicDefinitionPrefix).
is_individual: boolWhether this is an individual part def.
identification: Identification§specializes: Option<String>Supertype after :>, e.g. Some(“Axle”) for part def FrontAxle :> Axle.
specializes_span: Option<Span>Span of the :> <type> fragment (for semantic tokens), when present.
body: PartDefBodyTrait Implementations§
impl Eq for PartDef
impl StructuralPartialEq for PartDef
Auto Trait Implementations§
impl Freeze for PartDef
impl RefUnwindSafe for PartDef
impl Send for PartDef
impl Sync for PartDef
impl Unpin for PartDef
impl UnsafeUnpin for PartDef
impl UnwindSafe for PartDef
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