pub enum TreeBuildingFailed {
RootedPath(String),
RepeatSlashesInPath(String),
PathEndsInSlash(String),
TooManyRootLevelEntries,
DuplicatePath(String),
LeafAsDirectory(String),
}
Expand description
Tree building failure cases.
Variants§
RootedPath(String)
The given full path started with a slash; paths in the /add
convention are not rooted.
RepeatSlashesInPath(String)
The given full path contained an empty segment.
PathEndsInSlash(String)
The given full path ends in slash.
TooManyRootLevelEntries
If the BufferingTreeBuilder
was created without TreeOptions
with the option
wrap_with_directory
enabled, then there can be only a single element at the root.
DuplicatePath(String)
The given full path had already been added.
LeafAsDirectory(String)
The given full path had already been added as a link to an opaque entry.
Trait Implementations§
Source§impl Debug for TreeBuildingFailed
impl Debug for TreeBuildingFailed
Source§impl Display for TreeBuildingFailed
impl Display for TreeBuildingFailed
Source§impl Error for TreeBuildingFailed
impl Error for TreeBuildingFailed
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()
Auto Trait Implementations§
impl Freeze for TreeBuildingFailed
impl RefUnwindSafe for TreeBuildingFailed
impl Send for TreeBuildingFailed
impl Sync for TreeBuildingFailed
impl Unpin for TreeBuildingFailed
impl UnwindSafe for TreeBuildingFailed
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more