pub struct Suggestion {
pub file: PathBuf,
pub line_range: (usize, usize),
pub replacement: String,
pub label: Option<String>,
}Expand description
A single text replacement attached to a Help block.
Spans are inclusive line ranges ((start_line, end_line)) in
file. The replacement is the full new text for that span. A
“pure insertion” encodes as start_line == end_line + 1 (insert
before start_line) with a replacement containing the new lines.
Fields§
§file: PathBuf§line_range: (usize, usize)§replacement: String§label: Option<String>Optional short label, e.g. “at the call site” or “at the label header”.
Trait Implementations§
Source§impl Clone for Suggestion
impl Clone for Suggestion
Auto Trait Implementations§
impl Forget for Suggestion
impl Freeze for Suggestion
impl Move for Suggestion
impl RefUnwindSafe for Suggestion
impl Send for Suggestion
impl Sync for Suggestion
impl Unpin for Suggestion
impl UnsafeUnpin for Suggestion
impl UnwindSafe for Suggestion
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