#[non_exhaustive]pub enum EdgePathView<'s> {
Direct,
Corner {
bend_at: usize,
},
SideChannel {
channel_at: usize,
span_start: usize,
span_end: usize,
},
MultiSegment {
waypoints: &'s [(usize, usize)],
start_offset: usize,
},
Orthogonal {
bends: &'s [(usize, usize)],
},
SelfLoop {
at: (usize, usize),
},
}Expand description
Storage-neutral routed path. The heap IR’s Vec waypoints and the
arena IR’s shared-slice waypoints both LEND here — no IR type
appears in the scene surface.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Direct
Straight flow segment.
Corner
L-shaped connection with one cross-axis segment at bend_at.
SideChannel
Routed through a far cross-axis channel.
Fields
MultiSegment
Multi-segment path through routing waypoints — physical
(x, y) cells, lent from the IR.
Fields
Orthogonal
Available on crate feature
ports only.An explicit orthogonal polyline — every turn stated, lent from
the IR as physical (x, y) bend cells (see
EdgePath::Orthogonal).
SelfLoop
A preserved self-loop: no routed path, one marker cell.
Trait Implementations§
Source§impl<'s> Clone for EdgePathView<'s>
impl<'s> Clone for EdgePathView<'s>
Source§fn clone(&self) -> EdgePathView<'s>
fn clone(&self) -> EdgePathView<'s>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'s> Copy for EdgePathView<'s>
Source§impl<'s> Debug for EdgePathView<'s>
impl<'s> Debug for EdgePathView<'s>
impl<'s> Eq for EdgePathView<'s>
Source§impl<'s> PartialEq for EdgePathView<'s>
impl<'s> PartialEq for EdgePathView<'s>
impl<'s> StructuralPartialEq for EdgePathView<'s>
Auto Trait Implementations§
impl<'s> Freeze for EdgePathView<'s>
impl<'s> RefUnwindSafe for EdgePathView<'s>
impl<'s> Send for EdgePathView<'s>
impl<'s> Sync for EdgePathView<'s>
impl<'s> Unpin for EdgePathView<'s>
impl<'s> UnsafeUnpin for EdgePathView<'s>
impl<'s> UnwindSafe for EdgePathView<'s>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more