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