pub struct TargetSpan {
pub start_line: u32,
pub start_column: u32,
pub end_line: u32,
pub end_column: u32,
pub text: String,
}Expand description
The exact span a candidate proof must replace.
Lines are one-based; columns are zero-based codepoint offsets within a line,
with end_column exclusive. text is the verbatim current content of the
span, so source_before + text + source_after reproduces the file byte for
byte.
Fields§
§start_line: u32One-based first line of the span.
start_column: u32Zero-based first column of the span.
end_line: u32One-based last line of the span.
end_column: u32Zero-based exclusive end column on the last line.
text: StringVerbatim current text of the span.
Trait Implementations§
Source§impl Clone for TargetSpan
impl Clone for TargetSpan
Source§fn clone(&self) -> TargetSpan
fn clone(&self) -> TargetSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TargetSpan
impl Debug for TargetSpan
Source§impl<'de> Deserialize<'de> for TargetSpan
impl<'de> Deserialize<'de> for TargetSpan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TargetSpan
Source§impl PartialEq for TargetSpan
impl PartialEq for TargetSpan
Source§fn eq(&self, other: &TargetSpan) -> bool
fn eq(&self, other: &TargetSpan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TargetSpan
impl Serialize for TargetSpan
impl StructuralPartialEq for TargetSpan
Auto Trait Implementations§
impl Freeze for TargetSpan
impl RefUnwindSafe for TargetSpan
impl Send for TargetSpan
impl Sync for TargetSpan
impl Unpin for TargetSpan
impl UnsafeUnpin for TargetSpan
impl UnwindSafe for TargetSpan
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