[][src]Struct short::cfg::FileCfg

pub struct FileCfg<C> where
    C: Serialize + DeserializeOwned
{ /* fields omitted */ }

Implementations

impl<C> FileCfg<C> where
    C: Serialize + DeserializeOwned
[src]

pub fn load(file: &PathBuf) -> Result<FileCfg<C>>[src]

pub fn new(file: &PathBuf, cfg: C) -> Result<FileCfg<C>>[src]

pub fn save(&self) -> Result<()>[src]

pub fn file(&self) -> Result<&PathBuf>[src]

pub fn borrow(&self) -> &C[src]

pub fn borrow_mut(&mut self) -> &mut C[src]

Trait Implementations

impl<C: Debug> Debug for FileCfg<C> where
    C: Serialize + DeserializeOwned
[src]

impl<C> Display for FileCfg<C> where
    C: Serialize + DeserializeOwned
[src]

impl From<GlobalCfg> for FileCfg<GlobalCfg>[src]

impl From<LocalCfg> for FileCfg<LocalCfg>[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for FileCfg<C> where
    C: RefUnwindSafe

impl<C> Send for FileCfg<C> where
    C: Send

impl<C> Sync for FileCfg<C> where
    C: Sync

impl<C> Unpin for FileCfg<C> where
    C: Unpin

impl<C> UnwindSafe for FileCfg<C> where
    C: UnwindSafe

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> ToString for T where
    T: Display + ?Sized
[src]

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.