pub struct CutResult {
pub cut_source: String,
pub scope_range: LineRange,
}Fields§
§cut_source: StringThe scope excerpt with cuts applied. Only contains lines from scope_range.
Within that range, cut regions have their first line replaced with /* ... */
and remaining lines empty. Line count = scope_range.end - scope_range.start + 1.
scope_range: LineRange1-based inclusive line range of the displayed scope excerpt in the original file. For function scopes, this starts at the function body (signature omitted). Line 1 of cut_source = line scope_range.start in the original.
Auto Trait Implementations§
impl Freeze for CutResult
impl RefUnwindSafe for CutResult
impl Send for CutResult
impl Sync for CutResult
impl Unpin for CutResult
impl UnsafeUnpin for CutResult
impl UnwindSafe for CutResult
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