Trait sysml_model::Element
source · pub trait Element {
// Provided methods
fn id(&self) -> Option<&str> { ... }
fn alias_ids(&self) -> Vec<&str> { ... }
fn name(&self) -> Option<&str> { ... }
fn short_name(&self) -> Option<&str> { ... }
fn is_library_element(&self) -> bool { ... }
fn owner(&self) -> Option<&dyn Element> { ... }
fn owning_namespace(&self) -> Option<&dyn Namespace> { ... }
fn owning_relationship(&self) -> Option<&dyn Relationship> { ... }
fn qualified_name(&self) -> Option<QualifiedName> { ... }
}
Provided Methods§
sourcefn short_name(&self) -> Option<&str>
fn short_name(&self) -> Option<&str>
The short name of the element, if any.
sourcefn is_library_element(&self) -> bool
fn is_library_element(&self) -> bool
Whether this Element
is contained in the ownership tree of
a library model.
sourcefn owning_namespace(&self) -> Option<&dyn Namespace>
fn owning_namespace(&self) -> Option<&dyn Namespace>
sourcefn owning_relationship(&self) -> Option<&dyn Relationship>
fn owning_relationship(&self) -> Option<&dyn Relationship>
The Relationship
for which this Element
is an
owned_related_element
, if any.