Struct ra_ap_span::SpanData
source · pub struct SpanData<Ctx> {
pub range: TextRange,
pub anchor: SpanAnchor,
pub ctx: Ctx,
}Fields§
§range: TextRangeThe text range of this span, relative to the anchor. We need the anchor for incrementality, as storing absolute ranges will require recomputation on every change in a file at all times.
anchor: SpanAnchor§ctx: CtxThe syntax context of the span.
Implementations§
Trait Implementations§
source§impl<Ctx: PartialEq> PartialEq for SpanData<Ctx>
impl<Ctx: PartialEq> PartialEq for SpanData<Ctx>
impl<Ctx: Copy> Copy for SpanData<Ctx>
impl<Ctx: Eq> Eq for SpanData<Ctx>
impl<Ctx> StructuralEq for SpanData<Ctx>
impl<Ctx> StructuralPartialEq for SpanData<Ctx>
Auto Trait Implementations§
impl<Ctx> RefUnwindSafe for SpanData<Ctx>where
Ctx: RefUnwindSafe,
impl<Ctx> Send for SpanData<Ctx>where
Ctx: Send,
impl<Ctx> Sync for SpanData<Ctx>where
Ctx: Sync,
impl<Ctx> Unpin for SpanData<Ctx>where
Ctx: Unpin,
impl<Ctx> UnwindSafe for SpanData<Ctx>where
Ctx: 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.