pub struct Segment {
pub left: Position,
pub right: Position,
pub node: IdType,
}Expand description
A segment is a half-open
interval of crate::Positions
associated with a crate::Node.
This type is public primarily because
it is the value element of a
crate::EdgeBuffer.
Fields§
§left: PositionLeft edge of interval
right: PositionRight edge of interval
node: IdTypeThe 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