pub struct Span { /* private fields */ }
Implementations§
Source§impl Span
impl Span
pub fn new(source: SourceId, span: SourceSpan) -> Self
pub fn with_item<T>(self, item: T) -> SpannedItem<T>
pub fn join(&self, after_span: Span) -> Span
Sourcepub fn hi_to_hi(&self, after_span: Span) -> Self
pub fn hi_to_hi(&self, after_span: Span) -> Self
goes from the hi
of self to the hi
of after_span
pub fn span(&self) -> SourceSpan
pub fn source(&self) -> SourceId
pub fn zero_length(&self) -> Self
Trait Implementations§
impl Copy for Span
impl Eq for Span
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnwindSafe for Span
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