Enum dochy_fs::common::CurrentSrc[][src]

pub enum CurrentSrc {
    SrcDir(PathBuf),
    ArchiveFile(PathBuf),
}

We always have an archive of json src files which corresponds to save files. if there’s no change in json src files, we don’t need current src. if the src is changed, we need the archived and the current src because we need to update the save data and make it compatible with the current version. The current src can be specified as an archive or a directory.

Variants

SrcDir(PathBuf)
ArchiveFile(PathBuf)

Trait Implementations

impl Clone for CurrentSrc[src]

impl Debug for CurrentSrc[src]

impl Eq for CurrentSrc[src]

impl PartialEq<CurrentSrc> for CurrentSrc[src]

impl StructuralEq for CurrentSrc[src]

impl StructuralPartialEq for CurrentSrc[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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>,