Crate magic_regexp

source ·

Re-exports

  • pub use type::Input::*;
  • pub use type::Type::*;

Enums

  • This is a regex input that can be used to match a single character or a group of characters. Can be used to create a regex that matches a single character or a group of characters. For example, Input::Exactly(Type::Digit) will match a single digit.

Traits

  • A trait, which allows to convert something to a regex. Mostly needed to work with this lib and Regex crate.
  • A trait, which allows to chain regex statements with conditions. Import this, if you want to use the and, or and optionally methods and chain statements.

Functions

  • Returns the regex, which represents the given statement. This is only for convenience and compatibility with magic-regex from npm.
  • Returns the opposite of the given type. For example, Type::Digit will return Type::NotDigit. Returns the same type if it is not a type that can be negated.

Type Definitions