pub struct WritablePath(/* private fields */);Implementations§
Source§impl WritablePath
impl WritablePath
pub fn new(path: PathBuf) -> WritablePath
pub fn from_string(input: &str) -> Result<WritablePath, Error>
pub fn write_from_string(&self, content: &str) -> Result<(), Error>
pub fn exists(&self) -> bool
Trait Implementations§
Source§impl AsRef<PathBuf> for WritablePath
impl AsRef<PathBuf> for WritablePath
Source§impl Clone for WritablePath
impl Clone for WritablePath
Source§fn clone(&self) -> WritablePath
fn clone(&self) -> WritablePath
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WritablePath
impl Debug for WritablePath
Source§impl Display for WritablePath
impl Display for WritablePath
Source§impl ReadPath for WritablePath
impl ReadPath for WritablePath
fn read_to_bytes(&self) -> Result<Vec<u8>, PathError>
fn exists(&self) -> Result<bool, PathError>
fn copy(&self, dest: &WritablePath) -> Result<(), PathError>
fn read_to_string(&self) -> Result<String, PathError>
fn is_utf8(&self) -> Result<bool, PathError>
fn hash(&self) -> Result<u64, PathError>
Auto Trait Implementations§
impl Freeze for WritablePath
impl RefUnwindSafe for WritablePath
impl Send for WritablePath
impl Sync for WritablePath
impl Unpin for WritablePath
impl UnwindSafe for WritablePath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.