pub struct Segment {
pub left: Position,
pub right: Position,
pub node: IdType,
}
Expand description
A segment is a half-open
interval of crate::Position
s
associated with a crate::Node
.
This type is public primarily because
it is the value element of a
crate::EdgeBuffer
.
Fields§
§left: Position
Left edge of interval
right: Position
Right edge of interval
node: IdType
The node
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
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