💥 OneComponents are now TypedComponents

This commit is contained in:
Manuel Cillero 2023-08-19 11:37:01 +02:00
parent 66117992c1
commit f2031307d7
23 changed files with 301 additions and 313 deletions

View file

@ -12,7 +12,7 @@ pub struct Block {
id : IdentifierValue,
classes : Classes,
title : AttributeValue,
stuff : MixComponents,
stuff : ArcComponents,
template : String,
}
@ -94,12 +94,12 @@ impl Block {
}
pub fn with_component(mut self, component: impl ComponentTrait) -> Self {
self.stuff.alter(MixOp::Add(ComponentArc::with(component)));
self.stuff.alter(ArcOp::Add(ArcComponent::with(component)));
self
}
#[fn_builder]
pub fn alter_components(&mut self, op: MixOp) -> &mut Self {
pub fn alter_components(&mut self, op: ArcOp) -> &mut Self {
self.stuff.alter(op);
self
}
@ -120,7 +120,7 @@ impl Block {
&self.title
}
pub fn components(&self) -> &MixComponents {
pub fn components(&self) -> &ArcComponents {
&self.stuff
}