pub struct Wrapper<T>(pub T);

Tuple Fields

0: T

Implementations

Trait Implementations

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.

Create a mutator which wraps self but only produces values for which the given closure returns true Read more

Create a mutator which wraps self and transforms the values generated by self using the map closure. The second closure, parse, should apply the opposite transformation. Read more

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.