Struct gotham::router::tree::regex::ConstrainedSegmentRegex [−][src]
pub struct ConstrainedSegmentRegex { /* fields omitted */ }
Expand description
A unwind-safe wrapper for Regex that implements PartialEq, Eq, PartialOrd, and Ord. These traits are implemented in a potentially error-prone way by comparing the underlying &str representations of the regular expression.
If the ConstrainedSegmentRegex::is_match
traps a panic from Regex::is_match
,
std::process::abort()
will be called and the program will terminate.
Implementations
Trait Implementations
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 ConstrainedSegmentRegex
impl Send for ConstrainedSegmentRegex
impl Sync for ConstrainedSegmentRegex
impl Unpin for ConstrainedSegmentRegex
impl UnwindSafe for ConstrainedSegmentRegex
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more