pub struct SourceRange {
pub source: SourceId,
pub span: ByteSpan,
}Expand description
A span within a registered source file.
Fields§
§source: SourceIdThe registered source file containing this range.
span: ByteSpanByte span in that resource.
Trait Implementations§
Source§impl Clone for SourceRange
impl Clone for SourceRange
Source§fn clone(&self) -> SourceRange
fn clone(&self) -> SourceRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SourceRange
Source§impl Debug for SourceRange
impl Debug for SourceRange
impl Eq for SourceRange
Source§impl PartialEq for SourceRange
impl PartialEq for SourceRange
Source§fn eq(&self, other: &SourceRange) -> bool
fn eq(&self, other: &SourceRange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceRange
Auto Trait Implementations§
impl Freeze for SourceRange
impl RefUnwindSafe for SourceRange
impl Send for SourceRange
impl Sync for SourceRange
impl Unpin for SourceRange
impl UnsafeUnpin for SourceRange
impl UnwindSafe for SourceRange
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