pub enum PrintableHunk {
Show 14 variants
FileMoveV {
path: String,
name: String,
perms: PrintablePerms,
pos: PrintablePos,
up_context: Vec<PrintablePos>,
down_context: Vec<PrintablePos>,
del: Vec<PrintableEdge>,
},
FileMoveE {
path: String,
pos: PrintablePos,
add: Vec<PrintableEdge>,
del: Vec<PrintableEdge>,
},
FileAddition {
name: String,
parent: String,
perms: PrintablePerms,
encoding: Option<Encoding>,
up_context: Vec<PrintablePos>,
start: u64,
end: u64,
contents: Vec<u8>,
},
FileDel {
path: String,
pos: PrintablePos,
encoding: Option<Encoding>,
del_edges: Vec<PrintableEdge>,
content_edges: Vec<PrintableEdge>,
contents: Vec<u8>,
},
FileUndel {
path: String,
pos: PrintablePos,
encoding: Option<Encoding>,
undel_edges: Vec<PrintableEdge>,
content_edges: Vec<PrintableEdge>,
contents: Vec<u8>,
},
Edit {
path: String,
line: usize,
pos: PrintablePos,
encoding: Option<Encoding>,
change: PrintableAtom,
contents: Vec<u8>,
},
Replace {
path: String,
line: usize,
pos: PrintablePos,
encoding: Option<Encoding>,
change: Vec<PrintableEdge>,
replacement: PrintableNewVertex,
change_contents: Vec<u8>,
replacement_contents: Vec<u8>,
},
SolveNameConflict {
path: String,
pos: PrintablePos,
names: Vec<String>,
edges: Vec<PrintableEdge>,
},
UnsolveNameConflict {
path: String,
pos: PrintablePos,
names: Vec<String>,
edges: Vec<PrintableEdge>,
},
SolveOrderConflict {
path: String,
line: usize,
pos: PrintablePos,
encoding: Option<Encoding>,
change: PrintableNewVertex,
contents: Vec<u8>,
},
UnsolveOrderConflict {
path: String,
line: usize,
pos: PrintablePos,
encoding: Option<Encoding>,
change: Vec<PrintableEdge>,
contents: Vec<u8>,
},
ResurrectZombies {
path: String,
line: usize,
pos: PrintablePos,
encoding: Option<Encoding>,
change: Vec<PrintableEdge>,
contents: Vec<u8>,
},
AddRoot {
start: u64,
},
DelRoot {
name: Vec<PrintableEdge>,
inode: Vec<PrintableEdge>,
},
}Variants§
FileMoveV
Fields
§
perms: PrintablePerms§
pos: PrintablePos§
up_context: Vec<PrintablePos>§
down_context: Vec<PrintablePos>§
del: Vec<PrintableEdge>FileMoveE
FileAddition
FileDel
FileUndel
Edit
Replace
SolveNameConflict
UnsolveNameConflict
SolveOrderConflict
UnsolveOrderConflict
ResurrectZombies
AddRoot
DelRoot
Implementations§
Source§impl PrintableHunk
impl PrintableHunk
Trait Implementations§
Source§impl Clone for PrintableHunk
impl Clone for PrintableHunk
Source§fn clone(&self) -> PrintableHunk
fn clone(&self) -> PrintableHunk
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 PrintableHunk
impl Debug for PrintableHunk
impl Eq for PrintableHunk
Source§impl PartialEq for PrintableHunk
impl PartialEq for PrintableHunk
impl StructuralPartialEq for PrintableHunk
Auto Trait Implementations§
impl Freeze for PrintableHunk
impl RefUnwindSafe for PrintableHunk
impl Send for PrintableHunk
impl Sync for PrintableHunk
impl Unpin for PrintableHunk
impl UnsafeUnpin for PrintableHunk
impl UnwindSafe for PrintableHunk
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.