pub struct Uml { /* private fields */ }
Implementations§
Source§impl Uml
impl Uml
pub fn new() -> Uml
Sourcepub fn get_node_adding_label(&mut self, label: &str) -> (NodeId, bool)
pub fn get_node_adding_label(&mut self, label: &str) -> (NodeId, bool)
Tries to get a node from a label. If it exists returns the node and true, otherwise, adds the node and returns false
Sourcepub fn get_node(&self, label: &str) -> Option<NodeId>
pub fn get_node(&self, label: &str) -> Option<NodeId>
Search a node from a label. If it does not exist, returno `None``
pub fn add_component( &mut self, node: NodeId, component: UmlComponent, ) -> Result<(), UmlError>
pub fn update_component( &mut self, node: NodeId, component: UmlComponent, ) -> Result<(), UmlError>
pub fn children<'a>( &'a self, node: &'a NodeId, ) -> impl Iterator<Item = (&'a NodeId, &'a UmlComponent)>
pub fn add_link( &mut self, source: NodeId, target: Name, link_name: Name, card: UmlCardinality, ) -> Result<(), UmlError>
pub fn make_link( &mut self, source: NodeId, target: NodeId, name: Name, card: UmlCardinality, )
pub fn add_extends(&mut self, source: &NodeId, target: &NodeId)
pub fn extends(&self) -> impl Iterator<Item = (&NodeId, &NodeId)>
pub fn as_plantuml_all<W: Write>( &self, config: &ShEx2UmlConfig, writer: &mut W, ) -> Result<(), UmlError>
pub fn as_plantuml_neighs<W: Write>( &self, config: &ShEx2UmlConfig, writer: &mut W, target_node: &NodeId, ) -> Result<(), UmlError>
Trait Implementations§
impl StructuralPartialEq for Uml
Auto Trait Implementations§
impl Freeze for Uml
impl RefUnwindSafe for Uml
impl Send for Uml
impl Sync for Uml
impl Unpin for Uml
impl UnwindSafe for Uml
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more