Struct relative_path::FromPathError [−][src]
pub struct FromPathError { /* fields omitted */ }
Expand description
An error raised when attempting to convert a path using RelativePathBuf::from_path.
Implementations
Gets the underlying FromPathErrorKind that provides more details on what went wrong.
Examples
use std::path::Path; use relative_path::{FromPathErrorKind, RelativePathBuf}; let result = RelativePathBuf::from_path(Path::new("/hello/world")); let e = result.unwrap_err(); assert_eq!(FromPathErrorKind::NonRelative, e.kind());
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FromPathError
impl Send for FromPathError
impl Sync for FromPathError
impl Unpin for FromPathError
impl UnwindSafe for FromPathError
Blanket Implementations
Mutably borrows from an owned value. Read more