Enum libpijul::change::Hunk [−][src]
pub enum Hunk<Hash, Local> { FileMove { del: Atom<Hash>, add: Atom<Hash>, path: String, }, FileDel { del: Atom<Hash>, contents: Option<Atom<Hash>>, path: String, encoding: Option<Encoding>, }, FileUndel { undel: Atom<Hash>, contents: Option<Atom<Hash>>, path: String, encoding: Option<Encoding>, }, FileAdd { add_name: Atom<Hash>, add_inode: Atom<Hash>, contents: Option<Atom<Hash>>, path: String, encoding: Option<Encoding>, }, SolveNameConflict { name: Atom<Hash>, path: String, }, UnsolveNameConflict { name: Atom<Hash>, path: String, }, Edit { change: Atom<Hash>, local: Local, encoding: Option<Encoding>, }, Replacement { change: Atom<Hash>, replacement: Atom<Hash>, local: Local, encoding: Option<Encoding>, }, SolveOrderConflict { change: Atom<Hash>, local: Local, }, UnsolveOrderConflict { change: Atom<Hash>, local: Local, }, ResurrectZombies { change: Atom<Hash>, local: Local, encoding: Option<Encoding>, }, }
Variants
Fields of FileUndel
Fields of FileAdd
Fields of Replacement
Fields of SolveOrderConflict
change: Atom<Hash>
local: Local
Fields of UnsolveOrderConflict
change: Atom<Hash>
local: Local
Implementations
pub fn rev_iter(&self) -> RevHunkIter<&Hunk<Context, Local>, &Atom<Context>>ⓘ
Trait Implementations
impl<'de, Hash, Local> Deserialize<'de> for Hunk<Hash, Local> where
Hash: Deserialize<'de>,
Local: Deserialize<'de>,
impl<'de, Hash, Local> Deserialize<'de> for Hunk<Hash, Local> where
Hash: Deserialize<'de>,
Local: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<Hash, Local> RefUnwindSafe for Hunk<Hash, Local> where
Hash: RefUnwindSafe,
Local: RefUnwindSafe,
impl<Hash, Local> UnwindSafe for Hunk<Hash, Local> where
Hash: UnwindSafe,
Local: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self