pub struct SourceInfoBuilder<D: Sourceable> { /* private fields */ }
Expand description

The SourceInfoBuilder that handles creating the SourceInfo object.

For each trait that is implemented for the Source, it needs to be enabled using this builder. If an struct called FocusFilter implements CreateSource and GetNameSource it would need to enable those features.

let source = load_context
 .create_source_builder::<FocusFilter, ()>()
 .enable_get_name()
 .enable_create()
 .build();

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.

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.