pub struct Fixed {
pub output: String,
pub report: Report,
/* private fields */
}Expand description
The rewritten text together with the report that explains it.
Fields§
§output: String§report: ReportImplementations§
Source§impl Fixed
impl Fixed
Sourcepub fn origins(&self, original: &str, hits: &[Hit]) -> Vec<Hit>
pub fn origins(&self, original: &str, hits: &[Hit]) -> Vec<Hit>
Where each hit IN output sits in original, the text this was fixed
from: byte, line and column. A hit inside a replacement is placed at the
start of the span it replaced (src/fix/emoji:V65). This is how a
caller that judges what is LEFT reports it in the file on disk.
Trait Implementations§
impl Eq for Fixed
impl StructuralPartialEq for Fixed
Auto Trait Implementations§
impl Forget for Fixed
impl Freeze for Fixed
impl RefUnwindSafe for Fixed
impl Send for Fixed
impl Sync for Fixed
impl Unpin for Fixed
impl UnsafeUnpin for Fixed
impl UnwindSafe for Fixed
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