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

Defines an impl block.

Implementations

Return a new impl definition

Add a generic to the impl block.

This adds the generic for the block (impl<T>) and not the target type.

Add a generic to the target type.

Set the trait that the impl block is implementing.

Add a macro to the impl block (e.g. "#[async_trait]")

Set an associated constant.

Set an associated type.

Add a where bound to the impl block.

Push a new function definition, returning a mutable reference to it.

Push a function definition.

Formats the impl block using the given formatter.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. 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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.