pub struct AbsUtf8PathError { /* private fields */ }Expand description
An error indicating that a path was not a well-formed absolute path.
Returned by AbsUtf8PathBuf::new.
Implementations§
Source§impl AbsUtf8PathError
impl AbsUtf8PathError
Sourcepub fn into_path(self) -> Utf8PathBuf
pub fn into_path(self) -> Utf8PathBuf
Consumes the error, returning the path that was rejected.
Sourcepub fn kind(&self) -> AbsUtf8PathErrorKind
pub fn kind(&self) -> AbsUtf8PathErrorKind
Returns the reason the path was rejected.
Trait Implementations§
Source§impl Clone for AbsUtf8PathError
impl Clone for AbsUtf8PathError
Source§fn clone(&self) -> AbsUtf8PathError
fn clone(&self) -> AbsUtf8PathError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AbsUtf8PathError
impl Debug for AbsUtf8PathError
Source§impl Display for AbsUtf8PathError
impl Display for AbsUtf8PathError
impl Eq for AbsUtf8PathError
Source§impl Error for AbsUtf8PathError
impl Error for AbsUtf8PathError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AbsUtf8PathError
impl PartialEq for AbsUtf8PathError
impl StructuralPartialEq for AbsUtf8PathError
Auto Trait Implementations§
impl Freeze for AbsUtf8PathError
impl RefUnwindSafe for AbsUtf8PathError
impl Send for AbsUtf8PathError
impl Sync for AbsUtf8PathError
impl Unpin for AbsUtf8PathError
impl UnsafeUnpin for AbsUtf8PathError
impl UnwindSafe for AbsUtf8PathError
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