pub struct SourceRegion {
pub label: String,
pub span: Span,
pub meta: Option<String>,
}Expand description
A labeled region of source text (e.g. a function body, an import block).
Fields§
§label: StringLabel for the region.
span: SpanSpan of the region.
meta: Option<String>Optional metadata string.
Implementations§
Trait Implementations§
Source§impl Clone for SourceRegion
impl Clone for SourceRegion
Source§fn clone(&self) -> SourceRegion
fn clone(&self) -> SourceRegion
Returns a duplicate 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 SourceRegion
impl Debug for SourceRegion
Source§impl PartialEq for SourceRegion
impl PartialEq for SourceRegion
impl StructuralPartialEq for SourceRegion
Auto Trait Implementations§
impl Freeze for SourceRegion
impl RefUnwindSafe for SourceRegion
impl Send for SourceRegion
impl Sync for SourceRegion
impl Unpin for SourceRegion
impl UnsafeUnpin for SourceRegion
impl UnwindSafe for SourceRegion
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