pub struct Stack { /* private fields */ }
Expand description
A vertical group of elements, drawn from top to bottom.
Also see Sequence
for a horizontal group of elements.
Implementations
sourceimpl Stack
impl Stack
pub fn new(children: Vec<Box<dyn RailroadNode>>) -> Self
pub fn push(&mut self, child: impl RailroadNode + 'static) -> &mut Self
pub fn into_inner(self) -> Vec<Box<dyn RailroadNode>>
Trait Implementations
sourceimpl RailroadNode for Stack
impl RailroadNode for Stack
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 Stack
impl !Send for Stack
impl !Sync for Stack
impl Unpin for Stack
impl !UnwindSafe for Stack
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