#[repr(transparent)]
pub struct ExprInfo(_);
Expand description

A type containing information related to an expression

Examples

let pattern: Pattern = r"(\d{4})-(\d{2})-(\d{2,4})".parse().unwrap();
let info = pattern.info().unwrap();

assert_eq!(info.min_width(), 10);
assert_eq!(info.max_width(), 12);
assert!(!info.unordered_matches());
assert!(!info.matches_at_eod());
assert!(!info.matches_only_at_eod());

Trait Implementations

Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Executes the destructor for this type. Read more
The raw C type.
The type representing a reference to this type.
Constructs an instance of this type from its raw type. Read more
Returns a raw pointer to the wrapped value.
Consumes the wrapper and returns the raw pointer.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.