pub struct Optional<T: RailroadNode> { /* private fields */ }
Expand description
Wraps another element to make that element logically optional.
Draws a separate path above, which skips the given element.
Implementations
Trait Implementations
sourceimpl<T: RailroadNode> AsRef<T> for Optional<T>
impl<T: RailroadNode> AsRef<T> for Optional<T>
sourceimpl<T: Debug + RailroadNode> Debug for Optional<T>
impl<T: Debug + RailroadNode> Debug for Optional<T>
sourceimpl<T: RailroadNode> RailroadNode for Optional<T>
impl<T: RailroadNode> RailroadNode for Optional<T>
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> RefUnwindSafe for Optional<T>where
T: RefUnwindSafe,
impl<T> Send for Optional<T>where
T: Send,
impl<T> Sync for Optional<T>where
T: Sync,
impl<T> Unpin for Optional<T>where
T: Unpin,
impl<T> UnwindSafe for Optional<T>where
T: 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