pub struct FlowChart { /* private fields */ }Expand description
This is the root struct for an individual flow chart.
Trait Implementations§
Source§impl CoreSyntaxFunctions for FlowChart
impl CoreSyntaxFunctions for FlowChart
Source§fn new(direction: FlowDirection) -> Self
fn new(direction: FlowDirection) -> Self
Returns a
FlowChart struct to allow you to build the necessary markdown text. Read moreSource§fn add_node(&mut self, node_config: SyntaxConfigFile<'_>)
fn add_node(&mut self, node_config: SyntaxConfigFile<'_>)
Creates a Mermaid.js Node with the supplied configuration & appends it to the current data of the flow chart struct (i.e.
self.data). Read moreSource§fn add_connection(&mut self, connection_config: SyntaxConfigFile<'_>)
fn add_connection(&mut self, connection_config: SyntaxConfigFile<'_>)
Creates a Mermaid.js Connection with the supplied [configuration] & appends it to the current data of the flow chart struct (i.e.
self.data). Read moreSource§fn add_linebreak(&mut self, num_of_indents: Option<u8>)
fn add_linebreak(&mut self, num_of_indents: Option<u8>)
Appends a linebreak & the preceding whitespace to the current data of the flow chart struct (i.e.
self.data). Read moreSource§fn build_node_config<'a>(
&self,
node: &'a Node,
id: Option<&'a str>,
) -> SyntaxConfigFile<'a>
fn build_node_config<'a>( &self, node: &'a Node, id: Option<&'a str>, ) -> SyntaxConfigFile<'a>
Source§fn build_connection_config<'a>(
&self,
connection: &'a Connection,
extra_length_num: Option<u8>,
) -> SyntaxConfigFile<'a>
fn build_connection_config<'a>( &self, connection: &'a Connection, extra_length_num: Option<u8>, ) -> SyntaxConfigFile<'a>
This method creates a [ConnectionConfig] referencing data from a supplied Connection. Read more
Source§fn return_schema(&self) -> String
fn return_schema(&self) -> String
This method returns a clone of
self.data. Read moreAuto Trait Implementations§
impl Freeze for FlowChart
impl RefUnwindSafe for FlowChart
impl Send for FlowChart
impl Sync for FlowChart
impl Unpin for FlowChart
impl UnwindSafe for FlowChart
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