pub struct Span {
pub file_handle: FileServerHandle,
/* private fields */
}
Fields§
§file_handle: FileServerHandle
Implementations§
source§impl Span
impl Span
pub fn new(file_handle: FileServerHandle, start: usize, end: usize) -> Span
pub fn new_dummy() -> Span
pub fn location(&self) -> Option<(usize, usize)>
pub fn length(&self) -> usize
pub fn before(&self) -> Span
pub fn after(&self) -> Span
pub fn join(&self, other: Span) -> Span
Trait Implementations§
source§impl PartialEq for Span
impl PartialEq for Span
impl Copy for Span
impl Eq for Span
impl StructuralEq for Span
Auto Trait Implementations§
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