pub trait Component {
fn add_sub_component<B: BufRead>(
&mut self,
value: &str,
line_parser: &RefCell<PropertyParser<B>>
) -> Result<()>;
fn add_property(&mut self, property: Property);
fn parse<B: BufRead>(
&mut self,
line_parser: &RefCell<PropertyParser<B>>
) -> Result<()> { ... }
}
Expand description
An interface for an Ical/Vcard component.
It take a PropertyParser
and fill the component with. It’s also able to create
sub-component used by event and alarms.
Required Methods§
sourcefn add_sub_component<B: BufRead>(
&mut self,
value: &str,
line_parser: &RefCell<PropertyParser<B>>
) -> Result<()>
fn add_sub_component<B: BufRead>(
&mut self,
value: &str,
line_parser: &RefCell<PropertyParser<B>>
) -> Result<()>
Add the givent sub component.
sourcefn add_property(&mut self, property: Property)
fn add_property(&mut self, property: Property)
Add the givent property.