pub struct QuotationSpan {
pub start_line: usize,
pub start_column: usize,
pub end_line: usize,
pub end_column: usize,
}Expand description
Source span for a quotation, supporting multi-line ranges
Fields§
§start_line: usizeStart line (0-indexed)
start_column: usizeStart column (0-indexed)
end_line: usizeEnd line (0-indexed)
end_column: usizeEnd column (0-indexed, exclusive)
Implementations§
Trait Implementations§
Source§impl Clone for QuotationSpan
impl Clone for QuotationSpan
Source§fn clone(&self) -> QuotationSpan
fn clone(&self) -> QuotationSpan
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 QuotationSpan
impl Debug for QuotationSpan
Source§impl Default for QuotationSpan
impl Default for QuotationSpan
Source§fn default() -> QuotationSpan
fn default() -> QuotationSpan
Returns the “default value” for a type. Read more
Source§impl PartialEq for QuotationSpan
impl PartialEq for QuotationSpan
impl StructuralPartialEq for QuotationSpan
Auto Trait Implementations§
impl Freeze for QuotationSpan
impl RefUnwindSafe for QuotationSpan
impl Send for QuotationSpan
impl Sync for QuotationSpan
impl Unpin for QuotationSpan
impl UnwindSafe for QuotationSpan
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