mesdoc/interface/
text.rs

1use super::INodeTrait;
2pub type BoxDynText<'a> = Box<dyn ITextTrait + 'a>;
3pub trait ITextTrait: INodeTrait {
4	// remove the ele
5	fn remove(self: Box<Self>);
6	// append text at the end
7	fn append_text(&mut self, content: &str);
8	// prepend text at the start
9	fn prepend_text(&mut self, content: &str);
10}