pub struct LocationSpan {
pub start: Location,
pub end: Location,
}
Expand description
The start and end Location
of a fragment.
Fields§
§start: Location
§end: Location
Implementations§
Trait Implementations§
Source§impl Clone for LocationSpan
impl Clone for LocationSpan
Source§fn clone(&self) -> LocationSpan
fn clone(&self) -> LocationSpan
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LocationSpan
impl Debug for LocationSpan
Source§impl Hash for LocationSpan
impl Hash for LocationSpan
Source§impl Ord for LocationSpan
impl Ord for LocationSpan
Source§fn cmp(&self, other: &LocationSpan) -> Ordering
fn cmp(&self, other: &LocationSpan) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LocationSpan
impl PartialEq for LocationSpan
Source§impl PartialOrd for LocationSpan
impl PartialOrd for LocationSpan
impl Eq for LocationSpan
impl StructuralPartialEq for LocationSpan
Auto Trait Implementations§
impl Freeze for LocationSpan
impl RefUnwindSafe for LocationSpan
impl Send for LocationSpan
impl Sync for LocationSpan
impl Unpin for LocationSpan
impl UnwindSafe for LocationSpan
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