[][src]Struct short::cfg::Cfg

pub struct Cfg { /* fields omitted */ }

Implementations

impl Cfg[src]

pub fn load_local(global_dir: PathBuf, local_dir: PathBuf) -> Result<Self>[src]

pub fn create_local(global_dir: PathBuf, local_dir: PathBuf) -> Result<Self>[src]

pub fn new(global_dir: PathBuf, local_cfg: FileCfg<LocalCfg>) -> Result<Self>[src]

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

pub fn add_local_setup_cfg(&mut self, setup: LocalSetupCfg)[src]

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

pub fn current_project(&self) -> Result<Rc<RefCell<GlobalProjectCfg>>>[src]

Local cfg and Global cfg must be synchronised before.

pub fn current_setups(&self) -> Result<Vec<Setup>>[src]

Local cfg and Global cfg must be synchronised before.

pub fn current_setup(&self, name: &String) -> Result<Setup>[src]

Trait Implementations

impl Debug for Cfg[src]

impl<'_> From<&'_ Cfg> for Settings[src]

Auto Trait Implementations

impl !RefUnwindSafe for Cfg

impl !Send for Cfg

impl !Sync for Cfg

impl Unpin for Cfg

impl !UnwindSafe for Cfg

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