Struct dotavious::dot::NodeBuilder [−][src]
Implementations
impl<'a> NodeBuilder<'a>
[src]
pub fn new<S: Into<String>>(id: S) -> Self
[src]
pub fn build(&self) -> ValidationResult<Node<'a>>
[src]
pub fn build_ignore_validation(&self) -> Node<'a>
[src]
Trait Implementations
impl<'a> NodeAttributes<'a> for NodeBuilder<'a>
[src]
fn add_attribute<S: Into<String>>(
&mut self,
key: S,
value: AttributeText<'a>
) -> &mut Self
[src]
&mut self,
key: S,
value: AttributeText<'a>
) -> &mut Self
fn add_attributes(
&'a mut self,
attributes: HashMap<String, AttributeText<'a>>
) -> &mut Self
[src]
&'a mut self,
attributes: HashMap<String, AttributeText<'a>>
) -> &mut Self
Add multiple attributes to the edge.
fn get_attributes_mut(&mut self) -> &mut IndexMap<String, AttributeText<'a>>
[src]
fn add_validation_error(&mut self, field: &'static str, message: &'static str)
[src]
fn area(&mut self, area: f32) -> &mut Self
[src]
fn class(&mut self, class: String) -> &mut Self
[src]
fn color(&mut self, color: Color<'a>) -> &mut Self
[src]
fn color_scheme(&mut self, color_scheme: String) -> &mut Self
[src]
fn comment(&mut self, comment: String) -> &mut Self
[src]
fn distortion(&mut self, distortion: f32) -> &mut Self
[src]
fn fill_color(&mut self, fill_color: Color<'a>) -> &mut Self
[src]
fn fill_color_with_colorlist(&mut self, fill_colors: ColorList<'a>) -> &mut Self
[src]
fn fill_color_with_iter<I>(&mut self, fill_colors: I) -> &mut Self where
I: IntoIterator,
I::Item: IntoWeightedColor<'a>,
[src]
I: IntoIterator,
I::Item: IntoWeightedColor<'a>,
fn fixed_size(&mut self, fixed_size: bool) -> &mut Self
[src]
fn font_color(&mut self, font_color: Color<'a>) -> &mut Self
[src]
fn font_name(&mut self, font_name: String) -> &mut Self
[src]
fn font_size(&mut self, font_size: f32) -> &mut Self
[src]
fn gradient_angle(&mut self, gradient_angle: u32) -> &mut Self
[src]
fn group(&mut self, group: String) -> &mut Self
[src]
fn height(&mut self, height: f32) -> &mut Self
[src]
fn image(&mut self, image: String) -> &mut Self
[src]
fn image_pos(&mut self, image_pos: ImagePosition) -> &mut Self
[src]
fn image_scale_bool(&mut self, image_scale: bool) -> &mut Self
[src]
fn image_scale(&mut self, image_scale: ImageScale) -> &mut Self
[src]
fn label<S: Into<Cow<'a, str>>>(&mut self, text: S) -> &mut Self
[src]
fn label_location(&mut self, label_location: LabelLocation) -> &mut Self
[src]
fn layer(&mut self, layer: String) -> &mut Self
[src]
fn margin(&mut self, margin: f32) -> &mut Self
[src]
fn margin_point(&mut self, margin: Point) -> &mut Self
[src]
fn no_justify(&mut self, no_justify: bool) -> &mut Self
[src]
fn ordering(&mut self, ordering: Ordering) -> &mut Self
[src]
fn orientation(&mut self, orientation: f32) -> &mut Self
[src]
fn pen_width(&mut self, pen_width: f32) -> &mut Self
[src]
fn peripheries(&mut self, peripheries: u32) -> &mut Self
[src]
fn pos(&mut self, pos: Point) -> &mut Self
[src]
fn rects(&mut self, rect: Rectangle) -> &mut Self
[src]
fn regular(&mut self, regular: bool) -> &mut Self
[src]
fn sample_points(&mut self, sample_points: u32) -> &mut Self
[src]
fn shape(&mut self, shape: Shape) -> &mut Self
[src]
fn show_boxes(&mut self, show_boxes: u32) -> &mut Self
[src]
fn sides(&mut self, sides: u32) -> &mut Self
[src]
fn skew(&mut self, skew: f32) -> &mut Self
[src]
fn sortv(&mut self, sortv: u32) -> &mut Self
[src]
fn style(&mut self, style: NodeStyle) -> &mut Self
[src]
fn target(&mut self, target: String) -> &mut Self
[src]
fn tooltip(&mut self, tooltip: String) -> &mut Self
[src]
fn url(&mut self, url: String) -> &mut Self
[src]
fn vertices(&mut self, vertices: String) -> &mut Self
[src]
fn width(&mut self, width: f32) -> &mut Self
[src]
fn xlabel(&mut self, xlabel: String) -> &mut Self
[src]
fn xlp(&mut self, xlp: Point) -> &mut Self
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for NodeBuilder<'a>
impl<'a> Send for NodeBuilder<'a>
impl<'a> Sync for NodeBuilder<'a>
impl<'a> Unpin for NodeBuilder<'a>
impl<'a> UnwindSafe for NodeBuilder<'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>,