Module switch

Module switch 

Source
Expand description

Parses routes into enums or structs.

Structs§

AllowMissing
Allows a section to match, providing a None value, if its contents are entirely missing, or starts with a ‘/’.
LeadingSlash
Wrapper that requires that an implementor of Switch must start with a /.
Permissive
Successfully match even when the captured section can’t be found.

Traits§

Switch
Derivable routing trait that allows instances of implementors to be constructed from Routes.

Type Aliases§

Routable
Alias to Switch.