Struct railroad::Choice

source ·
pub struct Choice { /* private fields */ }
Expand description

A container of elements, drawn vertically, where exactly one element has to be picked

Use Empty as one of the elements to make the entire Choice optional (a shorthand for Optional(Choice(..)).

Implementations

Access an attribute on the main SVG-element that will be drawn.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
The vertical distance from this element’s top to where the entering, connecting path is drawn. Read more
This primitives’s total height.
This primitive’s total width.
Draw this element as an svg::Element.
source

fn height_below_entry(&self) -> i64

The vertical distance from the height of the connecting path to the bottom.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.