Struct partiql_source_map::location::Location
source · 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: Loc
The start the range (inclusive).
end: Loc
The end of the range (exclusive).
Trait Implementations§
source§impl<Loc: PartialEq + Display> PartialEq<Location<Loc>> for Location<Loc>
impl<Loc: PartialEq + Display> PartialEq<Location<Loc>> for Location<Loc>
impl<Loc: Eq + Display> Eq for Location<Loc>
impl<Loc: Display> StructuralEq for Location<Loc>
impl<Loc: Display> StructuralPartialEq for Location<Loc>
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.