pub struct Sequence { /* private fields */ }
Expand description
A horizontal group of elements, connected from left to right.
Also see Stack
for a vertical group of elements.
Implementations
sourceimpl Sequence
impl Sequence
pub fn new(children: Vec<Box<dyn RailroadNode>>) -> Sequence
pub fn push(&mut self, child: Box<dyn RailroadNode>) -> &mut Self
pub fn into_inner(self) -> Vec<Box<dyn RailroadNode>>
Trait Implementations
sourceimpl RailroadNode for Sequence
impl RailroadNode for Sequence
sourcefn entry_height(&self) -> i64
fn entry_height(&self) -> i64
The vertical distance from this element’s top to where the entering,
connecting path is drawn. Read more
sourcefn height_below_entry(&self) -> i64
fn height_below_entry(&self) -> i64
The vertical distance from the height of the connecting path to the bottom.
Auto Trait Implementations
impl !RefUnwindSafe for Sequence
impl !Send for Sequence
impl !Sync for Sequence
impl Unpin for Sequence
impl !UnwindSafe for Sequence
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more