Struct crossbundle_tools::types::Config
source · [−]pub struct Config { /* private fields */ }
Expand description
Configuration information for crossbundle. This is not specific to a build, it is information relating to crossbundle itself.
Implementations
sourceimpl Config
impl Config
sourcepub fn shell(&self) -> RefMut<'_, Shell>
pub fn shell(&self) -> RefMut<'_, Shell>
Gets a reference to the shell, e.g., for writing error messages.
sourcepub fn status_message<T, U>(&self, status: T, message: U) -> Result<()> where
T: Display,
U: Display,
pub fn status_message<T, U>(&self, status: T, message: U) -> Result<()> where
T: Display,
U: Display,
Shortcut to right-align and color green a status message.
sourcepub fn status<T>(&self, status: T) -> Result<()> where
T: Display,
pub fn status<T>(&self, status: T) -> Result<()> where
T: Display,
Shortcut to right-align and color green a status.
sourcepub fn current_dir(&self) -> &Path
pub fn current_dir(&self) -> &Path
Gets a reference to the current working dir.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Config
impl !Send for Config
impl !Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more