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

Builder for Loader. Allows configure asset loader with required Sources.

Implementations

Returns new LoaderBuilder without asset sources.

Adds provided source to the loader.

Adds provided source to the loader.

Sets number of shards for the loader.

Actual number of shards will be bumped to the next power of two and limited to 512.

This is low-level optimization tweaking function. Default value should be sufficient most use cases.

Sets number of shards for the loader.

Actual number of shards will be bumped to the next power of two and limited to 512.

This is low-level optimization tweaking function. Default value should be sufficient most use cases.

Builds and returns new Loader instance.

Trait Implementations

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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.