[−][src]Struct short::cfg::Cfg
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,