[−][src]Struct acick_util::abs_path::AbsPathBuf
Methods
impl AbsPathBuf
[src]
pub fn try_new(path: PathBuf) -> Result<Self>
[src]
pub fn cwd() -> Result<Self>
[src]
pub fn join_expand<P: AsRef<Path>>(&self, path: P) -> Result<Self>
[src]
pub fn join<P: AsRef<Path>>(&self, path: P) -> Self
[src]
pub fn parent(&self) -> Option<Self>
[src]
pub fn search_dir_contains(&self, file_name: &str) -> Option<Self>
[src]
pub fn save_pretty(
&self,
save: impl FnOnce(File) -> Result<()>,
overwrite: bool,
base_dir: Option<&AbsPathBuf>,
cnsl: &mut dyn Write
) -> Result<Option<bool>>
[src]
&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>>
[src]
&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>
[src]
&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>
[src]
pub fn remove_dir_all_pretty(
&self,
base_dir: Option<&AbsPathBuf>,
cnsl: &mut dyn Write
) -> Result<bool>
[src]
&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<()>
[src]
&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>
[src]
&self,
is_read: bool,
is_write: bool
) -> Result<File>
pub fn create_dir_all(&self) -> Result<()>
[src]
pub fn strip_prefix(&self, base: &AbsPathBuf) -> &Path
[src]
Trait Implementations
impl AsRef<PathBuf> for AbsPathBuf
[src]
impl Clone for AbsPathBuf
[src]
fn clone(&self) -> AbsPathBuf
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AbsPathBuf
[src]
impl Display for AbsPathBuf
[src]
impl Eq for AbsPathBuf
[src]
impl Hash for AbsPathBuf
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<AbsPathBuf> for AbsPathBuf
[src]
fn eq(&self, other: &AbsPathBuf) -> bool
[src]
fn ne(&self, other: &AbsPathBuf) -> bool
[src]
impl Serialize for AbsPathBuf
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for AbsPathBuf
[src]
impl StructuralPartialEq for AbsPathBuf
[src]
Auto Trait Implementations
impl RefUnwindSafe for AbsPathBuf
impl Send for AbsPathBuf
impl Sync for AbsPathBuf
impl Unpin for AbsPathBuf
impl UnwindSafe for AbsPathBuf
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,