Struct railroad::LabeledBox
source · pub struct LabeledBox<T: RailroadNode, U: RailroadNode> { /* private fields */ }
Expand description
A box drawn around the given element and a label placed inside the box, above the element.
You may want to use Comment
or Empty
for the label.
Implementations
sourceimpl<T: RailroadNode> LabeledBox<T, Empty>
impl<T: RailroadNode> LabeledBox<T, Empty>
sourcepub fn without_label(inner: T) -> Self
pub fn without_label(inner: T) -> Self
Construct a box with a label set to Empty
sourceimpl<T: RailroadNode, U: RailroadNode> LabeledBox<T, U>
impl<T: RailroadNode, U: RailroadNode> LabeledBox<T, U>
Trait Implementations
sourceimpl<T: Debug + RailroadNode, U: Debug + RailroadNode> Debug for LabeledBox<T, U>
impl<T: Debug + RailroadNode, U: Debug + RailroadNode> Debug for LabeledBox<T, U>
sourceimpl<T: RailroadNode, U: RailroadNode> RailroadNode for LabeledBox<T, U>
impl<T: RailroadNode, U: RailroadNode> RailroadNode for LabeledBox<T, U>
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<T, U> RefUnwindSafe for LabeledBox<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for LabeledBox<T, U>where
T: Send,
U: Send,
impl<T, U> Sync for LabeledBox<T, U>where
T: Sync,
U: Sync,
impl<T, U> Unpin for LabeledBox<T, U>where
T: Unpin,
U: Unpin,
impl<T, U> UnwindSafe for LabeledBox<T, U>where
T: UnwindSafe,
U: UnwindSafe,
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