🧑💻 Improve regions and components API
This commit is contained in:
parent
496c9d375b
commit
3bbad7f6a4
9 changed files with 77 additions and 69 deletions
|
|
@ -65,7 +65,11 @@ pub enum MixedOp {
|
|||
pub struct MixedComponents(Vec<AnyComponent>);
|
||||
|
||||
impl MixedComponents {
|
||||
pub fn new(any: AnyComponent) -> Self {
|
||||
pub fn new() -> Self {
|
||||
MixedComponents::default()
|
||||
}
|
||||
|
||||
pub fn with(any: AnyComponent) -> Self {
|
||||
MixedComponents::default().with_value(MixedOp::Add(any))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue