pub struct Spans(pub Vec<Span>);Expand description
A collection of Span, meant to be used as a field of entities whose
location in the original SQL query is desired to be tracked. Sometimes an
entity can have multiple spans. e.g. if you want to track the position of
the column a that comes from SELECT 1 AS a UNION ALL SELECT 2 AS a you’ll
need two spans.
Tuple Fields§
§0: Vec<Span>Implementations§
Trait Implementations§
impl Eq for Spans
Source§impl Ord for Spans
impl Ord for Spans
1.21.0 (const: unstable) · 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
Auto Trait Implementations§
impl Freeze for Spans
impl RefUnwindSafe for Spans
impl Send for Spans
impl Sync for Spans
impl Unpin for Spans
impl UnsafeUnpin for Spans
impl UnwindSafe for Spans
Blanket Implementations§
impl<T> Allocation for T
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> Comparable<K> for Q
impl<Q, K> Comparable<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.