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

Function builder API. Stores the state while we are constructing an AST for a function.

Implementations

Add one more parameter to the function.

Set return type for the function. Functions are of void type by default if you do not set the return type.

Enter the function body at start the building.

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.