Struct dotavious::dot::GraphBuilder [−][src]
Implementations
impl<'a> GraphBuilder<'a>
[src]
pub fn new_directed() -> Self
[src]
pub fn new_named_directed<S: Into<String>>(id: S) -> Self
[src]
pub fn new_undirected() -> Self
[src]
pub fn new_named_undirected<S: Into<String>>(id: S) -> Self
[src]
pub fn comment<S: Into<String>>(&mut self, comment: S) -> &mut Self
[src]
pub fn add_graph_attributes(
&mut self,
attributes: IndexMap<String, AttributeText<'a>>
) -> &mut Self
[src]
&mut self,
attributes: IndexMap<String, AttributeText<'a>>
) -> &mut Self
pub fn add_node_attributes(
&mut self,
node_attributes: IndexMap<String, AttributeText<'a>>
) -> &mut Self
[src]
&mut self,
node_attributes: IndexMap<String, AttributeText<'a>>
) -> &mut Self
pub fn add_edge_attributes(
&mut self,
edge_attributes: IndexMap<String, AttributeText<'a>>
) -> &mut Self
[src]
&mut self,
edge_attributes: IndexMap<String, AttributeText<'a>>
) -> &mut Self
pub fn add_attribute<S: Into<String>>(
&mut self,
attribute_type: AttributeType,
key: S,
value: AttributeText<'a>
) -> &mut Self
[src]
&mut self,
attribute_type: AttributeType,
key: S,
value: AttributeText<'a>
) -> &mut Self
pub fn extend_with_attributes(
&mut self,
attribute_type: AttributeType,
attributes: HashMap<String, AttributeText<'a>>
) -> &mut Self
[src]
&mut self,
attribute_type: AttributeType,
attributes: HashMap<String, AttributeText<'a>>
) -> &mut Self
pub fn add_sub_graph(&mut self, sub_graph: SubGraph<'a>) -> &mut Self
[src]
pub fn add_node(&mut self, node: Node<'a>) -> &mut Self
[src]
pub fn add_edge(&mut self, edge: Edge<'a>) -> &mut Self
[src]
pub fn strict(&mut self) -> &mut Self
[src]
pub fn build(&self) -> ValidationResult<Graph<'a>>
[src]
pub fn build_ignore_validation(&self) -> Graph<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for GraphBuilder<'a>
impl<'a> Send for GraphBuilder<'a>
impl<'a> Sync for GraphBuilder<'a>
impl<'a> Unpin for GraphBuilder<'a>
impl<'a> UnwindSafe for GraphBuilder<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,