pub struct DATA_LOCAL_DIR { /* private fields */ }
Methods from Deref<Target = AbsPathBuf>§
Sourcepub fn join_expand<P: AsRef<Path>>(&self, path: P) -> Result<Self>
pub fn join_expand<P: AsRef<Path>>(&self, path: P) -> Result<Self>
Joins path while expanding leading tilde and environment variables.
pub fn search_dir_contains(&self, file_name: &str) -> Option<Self>
pub fn save_pretty( &self, save: impl FnOnce(File) -> Result<()>, overwrite: bool, base_dir: Option<&AbsPathBuf>, cnsl: &mut dyn Write, ) -> Result<Option<bool>>
pub fn save( &self, save: impl FnOnce(File) -> Result<()>, overwrite: bool, ) -> Result<Option<bool>>
pub fn load_pretty<T>( &self, load: impl FnOnce(File) -> Result<T>, base_dir: Option<&AbsPathBuf>, cnsl: &mut dyn Write, ) -> Result<T>
pub fn load<T>(&self, load: impl FnOnce(File) -> Result<T>) -> Result<T>
pub fn remove_dir_all_pretty( &self, base_dir: Option<&AbsPathBuf>, cnsl: &mut dyn Write, ) -> Result<bool>
pub fn remove_file_pretty( &self, base_dir: Option<&AbsPathBuf>, cnsl: &mut dyn Write, ) -> Result<bool>
pub fn move_from_pretty( &self, from: &AbsPathBuf, base_dir: Option<&AbsPathBuf>, cnsl: &mut dyn Write, ) -> Result<()>
pub fn create_dir_all_and_open( &self, is_read: bool, is_write: bool, ) -> Result<File>
pub fn create_dir_all(&self) -> Result<()>
pub fn strip_prefix(&self, base: &AbsPathBuf) -> &Path
Trait Implementations§
Source§impl Deref for DATA_LOCAL_DIR
impl Deref for DATA_LOCAL_DIR
Source§type Target = AbsPathBuf
type Target = AbsPathBuf
The resulting type after dereferencing.
Source§fn deref(&self) -> &AbsPathBuf
fn deref(&self) -> &AbsPathBuf
Dereferences the value.
impl LazyStatic for DATA_LOCAL_DIR
Auto Trait Implementations§
impl Freeze for DATA_LOCAL_DIR
impl RefUnwindSafe for DATA_LOCAL_DIR
impl Send for DATA_LOCAL_DIR
impl Sync for DATA_LOCAL_DIR
impl Unpin for DATA_LOCAL_DIR
impl UnwindSafe for DATA_LOCAL_DIR
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