pub struct ExtractionRules { /* private fields */ }
Expand description

Wrapper around implementations of Extract trait. Add custom extraction rules or use the default extraction rules.

Implementations

Add an Extract implementation to the ruleset

Instantiate a new ExtractionRules set

Trait Implementations

The default implementation of ExtractionRules uses all the rules in the default_extractors folder

Returns the “default value” for a type. Read more

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.