pub struct RefDecl {
pub name: String,
pub type_name: String,
pub value: Option<Node<Expression>>,
pub body: RefBody,
pub name_span: Option<Span>,
pub type_ref_span: Option<Span>,
}Expand description
Ref declaration in interface def: ref name : type body.
Fields§
§name: String§type_name: String§value: Option<Node<Expression>>Optional binding value: = expr (SysML shorthand binding for references).
body: RefBody§name_span: Option<Span>Span of the name (for semantic tokens).
type_ref_span: Option<Span>Span of the type after : (for semantic tokens).
Trait Implementations§
impl Eq for RefDecl
impl StructuralPartialEq for RefDecl
Auto Trait Implementations§
impl Freeze for RefDecl
impl RefUnwindSafe for RefDecl
impl Send for RefDecl
impl Sync for RefDecl
impl Unpin for RefDecl
impl UnsafeUnpin for RefDecl
impl UnwindSafe for RefDecl
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