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

A type to collect errors together and format them.

Dropping this object will cause a panic. It must be consumed using check.

References can be shared since this type uses run-time exclusive mut checking.

Implementations

Create a new context object.

This object contains no errors, but will still trigger a panic if it is not checked.

Add an error to the context object.

Consume this object, producing a formatted error string if there are errors.

Trait Implementations

Returns the “default value” for a type. Read more
Executes the destructor for this 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.