Struct starlark::codemap::ResolvedSpan
source · pub struct ResolvedSpan {
pub begin: ResolvedPos,
pub end: ResolvedPos,
}
Expand description
The locations of values within a span. All are 0-based, but print out with 1-based.
Fields§
§begin: ResolvedPos
Beginning of the span.
end: ResolvedPos
End of the span.
Implementations§
source§impl ResolvedSpan
impl ResolvedSpan
sourcepub fn contains(&self, pos: ResolvedPos) -> bool
pub fn contains(&self, pos: ResolvedPos) -> bool
Check that the given position is contained within this span. Includes positions both at the beginning and the end of the range.
Trait Implementations§
source§impl Clone for ResolvedSpan
impl Clone for ResolvedSpan
source§fn clone(&self) -> ResolvedSpan
fn clone(&self) -> ResolvedSpan
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 ResolvedSpan
impl Debug for ResolvedSpan
source§impl Default for ResolvedSpan
impl Default for ResolvedSpan
source§fn default() -> ResolvedSpan
fn default() -> ResolvedSpan
Returns the “default value” for a type. Read more
source§impl Display for ResolvedSpan
impl Display for ResolvedSpan
source§impl Hash for ResolvedSpan
impl Hash for ResolvedSpan
source§impl PartialEq for ResolvedSpan
impl PartialEq for ResolvedSpan
source§fn eq(&self, other: &ResolvedSpan) -> bool
fn eq(&self, other: &ResolvedSpan) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ResolvedSpan
impl Eq for ResolvedSpan
impl StructuralPartialEq for ResolvedSpan
Auto Trait Implementations§
impl RefUnwindSafe for ResolvedSpan
impl Send for ResolvedSpan
impl Sync for ResolvedSpan
impl Unpin for ResolvedSpan
impl UnwindSafe for ResolvedSpan
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 Q
impl<Q, K> Equivalent<K> for Q
§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.