pub struct Span {
pub file_id: FileId,
pub offset: u32,
pub length: u16,
}
Fields§
§file_id: FileId
§offset: u32
§length: u16
Implementations§
Source§impl Span
impl Span
pub fn merge(&self, other: &Span) -> Span
pub fn merge_opt<S: Spanned>(&self, other: Option<&S>) -> Span
pub fn merge_spanned<S: Spanned>(&self, other: &S) -> Span
pub fn merge_opt_span(&self, other: Option<Span>) -> Span
pub fn dummy() -> Self
pub fn end(&self) -> u32
pub fn merge_all<'a, I, S>(iter: I) -> Option<Span>
pub fn merge_iter<'a, I, S>(&self, iter: I) -> Span
pub fn merge_opt_iter<'a, I, S>(&self, iter: I) -> Span
Trait Implementations§
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