pub struct Forehead { /* private fields */ }Implementations§
Source§impl Forehead
impl Forehead
pub fn new(config: Config) -> Self
pub fn from_config_path(path: &Path) -> Result<Self, ForeheadError>
pub fn apply(&self, dry_run: bool) -> Result<ApplyReport, ForeheadError>
pub fn check(&self) -> Result<CheckReport, ForeheadError>
pub fn list(&self) -> Result<Vec<(PathBuf, FileStatus)>, ForeheadError>
pub fn config(&self) -> &Config
pub fn remove(&self, dry_run: bool) -> Result<ApplyReport, ForeheadError>
Auto Trait Implementations§
impl Freeze for Forehead
impl RefUnwindSafe for Forehead
impl Send for Forehead
impl Sync for Forehead
impl Unpin for Forehead
impl UnsafeUnpin for Forehead
impl UnwindSafe for Forehead
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more