Enum matchit::InsertError [−][src]
#[non_exhaustive]
pub enum InsertError {
Conflict {
with: String,
},
TooManyParams,
UnnamedParam,
InvalidCatchAll,
MalformedPath,
}
Expand description
Represents errors that can occur when inserting a new route.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Attempted to insert a path that conflicts with an existing route.
Fields of Conflict
with: String
The existing route that the insertion is conflicting with.
Only one parameter per route segment is allowed.
Parameters must be registered with a name.
Catch-all parameters are only allowed at the end of a path.
Invalid tokens in the inserted path.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for InsertError
impl Send for InsertError
impl Sync for InsertError
impl Unpin for InsertError
impl UnwindSafe for InsertError
Blanket Implementations
Mutably borrows from an owned value. Read more