pub struct Location<Loc: Display> {
pub start: Loc,
pub end: Loc,
}Expand description
A range with an inclusive start and exclusive end.
Basically, a Range.
Fields§
§start: LocThe start the range (inclusive).
end: LocThe end of the range (exclusive).
Trait Implementations§
impl<Loc: Eq + Display> Eq for Location<Loc>
impl<Loc: Display> StructuralPartialEq for Location<Loc>
Auto Trait Implementations§
impl<Loc> Freeze for Location<Loc>where
Loc: Freeze,
impl<Loc> RefUnwindSafe for Location<Loc>where
Loc: RefUnwindSafe,
impl<Loc> Send for Location<Loc>where
Loc: Send,
impl<Loc> Sync for Location<Loc>where
Loc: Sync,
impl<Loc> Unpin for Location<Loc>where
Loc: Unpin,
impl<Loc> UnwindSafe for Location<Loc>where
Loc: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.