pub struct Source {
pub text: String,
pub regions: Vec<Region>,
}Expand description
One side of a diffed file. regions lists the tree in preorder: a
fold comes before its children, and siblings keep their order. A
binary file’s sides have empty text and no regions.
Fields§
§text: String§regions: Vec<Region>Trait Implementations§
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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