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§

source

fn id(&self) -> Option<&str>

The unique element ID, if any.

source

fn alias_ids(&self) -> Vec<&str>

Various alternative identifiers for this Element.

source

fn name(&self) -> Option<&str>

The name of the element.

source

fn short_name(&self) -> Option<&str>

The short name of the element, if any.

source

fn is_library_element(&self) -> bool

Whether this Element is contained in the ownership tree of a library model.

source

fn owner(&self) -> Option<&dyn Element>

The owner of this Element, if any.

source

fn owning_namespace(&self) -> Option<&dyn Namespace>

The Namespace that owns this Element, if any.

source

fn owning_relationship(&self) -> Option<&dyn Relationship>

The Relationship for which this Element is an owned_related_element, if any.

source

fn qualified_name(&self) -> Option<QualifiedName>

Implementors§