pub struct Empty;
Expand description
A dummy-element which has no size and draws nothing.
This can be used in conjunction with Choice
(to indicate that one of the options
is blank, a shorthand for an Optional(Choice)
), Repeat
(if there are
zero-or-more repetitions or if there is no joining element), or LabeledBox
(if the label should be empty).
Trait Implementations
sourceimpl RailroadNode for Empty
impl RailroadNode for Empty
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 Empty
impl Send for Empty
impl Sync for Empty
impl Unpin for Empty
impl UnwindSafe for Empty
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