Skip to content

Rename HasComponents trait to HasProvider#69

Merged
soareschen merged 1 commit intomainfrom
has-components-rename
Feb 16, 2025
Merged

Rename HasComponents trait to HasProvider#69
soareschen merged 1 commit intomainfrom
has-components-rename

Conversation

@soareschen
Copy link
Collaborator

@soareschen soareschen commented Feb 16, 2025

This PR renames the HasComponents trait to HasProvider. This is to clarify the relationship between a consumer trait and a provider trait, and what it implies when the trait is implemented by a context.

The name HasProvider better reflects what is happening, which is that the CGP context delegates the implementation of all its consumer traits to the specified provider.

Before:

pub trait HasComponents {
    type Components;
}
pub trait HasProvider {
    type Provider;
}

@soareschen soareschen merged commit 6dd33da into main Feb 16, 2025
5 checks passed
@soareschen soareschen deleted the has-components-rename branch February 16, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant