[][src]Enum libpijul::change::Hunk

pub enum Hunk<Hash, Local> {
    FileMove {
        del: Atom<Hash>,
        add: Atom<Hash>,
        path: String,
    },
    FileDel {
        del: Atom<Hash>,
        contents: Option<Atom<Hash>>,
        path: String,
    },
    FileUndel {
        undel: Atom<Hash>,
        contents: Option<Atom<Hash>>,
        path: String,
    },
    FileAdd {
        add_name: Atom<Hash>,
        add_inode: Atom<Hash>,
        contents: Option<Atom<Hash>>,
        path: String,
    },
    SolveNameConflict {
        name: Atom<Hash>,
        path: String,
    },
    UnsolveNameConflict {
        name: Atom<Hash>,
        path: String,
    },
    Edit {
        change: Atom<Hash>,
        local: Local,
    },
    Replacement {
        change: Atom<Hash>,
        replacement: Atom<Hash>,
        local: Local,
    },
    SolveOrderConflict {
        change: Atom<Hash>,
        local: Local,
    },
    UnsolveOrderConflict {
        change: Atom<Hash>,
        local: Local,
    },
    ResurrectZombies {
        change: Atom<Hash>,
        local: Local,
    },
}

Variants

FileMove

Fields of FileMove

del: Atom<Hash>add: Atom<Hash>path: String
FileDel

Fields of FileDel

del: Atom<Hash>contents: Option<Atom<Hash>>path: String
FileUndel

Fields of FileUndel

undel: Atom<Hash>contents: Option<Atom<Hash>>path: String
FileAdd

Fields of FileAdd

add_name: Atom<Hash>add_inode: Atom<Hash>contents: Option<Atom<Hash>>path: String
SolveNameConflict

Fields of SolveNameConflict

name: Atom<Hash>path: String
UnsolveNameConflict

Fields of UnsolveNameConflict

name: Atom<Hash>path: String
Edit

Fields of Edit

change: Atom<Hash>local: Local
Replacement

Fields of Replacement

change: Atom<Hash>replacement: Atom<Hash>local: Local
SolveOrderConflict

Fields of SolveOrderConflict

change: Atom<Hash>local: Local
UnsolveOrderConflict

Fields of UnsolveOrderConflict

change: Atom<Hash>local: Local
ResurrectZombies

Fields of ResurrectZombies

change: Atom<Hash>local: Local

Implementations

impl<L: Clone> Hunk<Option<Hash>, L>[src]

pub fn inverse(&self, hash: &Hash) -> Self[src]

impl<Context, Local> Hunk<Context, Local>[src]

pub fn iter(&self) -> HunkIter<&Hunk<Context, Local>, &Atom<Context>>[src]

pub fn rev_iter(&self) -> RevHunkIter<&Hunk<Context, Local>, &Atom<Context>>

Notable traits for RevHunkIter<&'a Hunk<Context, Local>, &'a Atom<Context>>

impl<'a, Context, Local> Iterator for RevHunkIter<&'a Hunk<Context, Local>, &'a Atom<Context>> type Item = &'a Atom<Context>;
[src]

impl<H> Hunk<H, Local>[src]

pub fn path(&self) -> &str[src]

pub fn line(&self) -> Option<usize>[src]

impl<Local> Hunk<Option<ChangeId>, Local>[src]

pub fn globalize<T: GraphTxnT>(
    self,
    txn: &T
) -> Result<Hunk<Option<Hash>, Local>, T::GraphError>
[src]

Trait Implementations

impl<Hash: Clone, Local: Clone> Clone for Hunk<Hash, Local>[src]

impl<Hash: Debug, Local: Debug> Debug for Hunk<Hash, Local>[src]

impl<'de, Hash, Local> Deserialize<'de> for Hunk<Hash, Local> where
    Hash: Deserialize<'de>,
    Local: Deserialize<'de>, 
[src]

impl<Hash: Eq, Local: Eq> Eq for Hunk<Hash, Local>[src]

impl<Context, Local> IntoIterator for Hunk<Context, Local>[src]

type IntoIter = HunkIter<Hunk<Context, Local>, Atom<Context>>

Which kind of iterator are we turning this into?

type Item = Atom<Context>

The type of the elements being iterated over.

impl<Hash: PartialEq, Local: PartialEq> PartialEq<Hunk<Hash, Local>> for Hunk<Hash, Local>[src]

impl<Hash, Local> Serialize for Hunk<Hash, Local> where
    Hash: Serialize,
    Local: Serialize
[src]

impl<Hash, Local> StructuralEq for Hunk<Hash, Local>[src]

impl<Hash, Local> StructuralPartialEq for Hunk<Hash, Local>[src]

Auto Trait Implementations

impl<Hash, Local> RefUnwindSafe for Hunk<Hash, Local> where
    Hash: RefUnwindSafe,
    Local: RefUnwindSafe
[src]

impl<Hash, Local> Send for Hunk<Hash, Local> where
    Hash: Send,
    Local: Send
[src]

impl<Hash, Local> Sync for Hunk<Hash, Local> where
    Hash: Sync,
    Local: Sync
[src]

impl<Hash, Local> Unpin for Hunk<Hash, Local> where
    Hash: Unpin,
    Local: Unpin
[src]

impl<Hash, Local> UnwindSafe for Hunk<Hash, Local> where
    Hash: UnwindSafe,
    Local: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,