pub struct RootNamespace {
pub elements: Vec<Node<RootElement>>,
}Expand description
Root of a SysML/KerML document: a sequence of top-level package or namespace elements.
Fields§
§elements: Vec<Node<RootElement>>Implementations§
Source§impl RootNamespace
impl RootNamespace
Sourcepub fn normalize_for_test_comparison(&self) -> Self
pub fn normalize_for_test_comparison(&self) -> Self
Returns a copy with all optional source spans set to None and all Node spans set to
Span::dummy(). Use when comparing parser output to hand-built expected AST in tests.
Trait Implementations§
Source§impl Clone for RootNamespace
impl Clone for RootNamespace
Source§fn clone(&self) -> RootNamespace
fn clone(&self) -> RootNamespace
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 RootNamespace
impl Debug for RootNamespace
impl Eq for RootNamespace
Source§impl PartialEq for RootNamespace
impl PartialEq for RootNamespace
Source§fn eq(&self, other: &RootNamespace) -> bool
fn eq(&self, other: &RootNamespace) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RootNamespace
Auto Trait Implementations§
impl Freeze for RootNamespace
impl RefUnwindSafe for RootNamespace
impl Send for RootNamespace
impl Sync for RootNamespace
impl Unpin for RootNamespace
impl UnsafeUnpin for RootNamespace
impl UnwindSafe for RootNamespace
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