pub trait CharacterDataMethods<D: DomTypes> {
Show 14 methods // Required methods fn Data(&self) -> DOMString; fn SetData(&self, value: DOMString); fn Length(&self) -> u32; fn SubstringData(&self, offset: u32, count: u32) -> Result<DOMString, Error>; fn AppendData(&self, data: DOMString); fn InsertData(&self, offset: u32, data: DOMString) -> Result<(), Error>; fn DeleteData(&self, offset: u32, count: u32) -> Result<(), Error>; fn ReplaceData( &self, offset: u32, count: u32, data: DOMString, ) -> Result<(), Error>; fn Before( &self, nodes: Vec<NodeOrString>, _can_gc: CanGc, ) -> Result<(), Error>; fn After( &self, nodes: Vec<NodeOrString>, _can_gc: CanGc, ) -> Result<(), Error>; fn ReplaceWith( &self, nodes: Vec<NodeOrString>, _can_gc: CanGc, ) -> Result<(), Error>; fn Remove(&self); fn GetPreviousElementSibling(&self) -> Option<Root<Dom<Element>>>; fn GetNextElementSibling(&self) -> Option<Root<Dom<Element>>>;
}

Required Methods§

source

fn Data(&self) -> DOMString

source

fn SetData(&self, value: DOMString)

source

fn Length(&self) -> u32

source

fn SubstringData(&self, offset: u32, count: u32) -> Result<DOMString, Error>

source

fn AppendData(&self, data: DOMString)

source

fn InsertData(&self, offset: u32, data: DOMString) -> Result<(), Error>

source

fn DeleteData(&self, offset: u32, count: u32) -> Result<(), Error>

source

fn ReplaceData( &self, offset: u32, count: u32, data: DOMString, ) -> Result<(), Error>

source

fn Before(&self, nodes: Vec<NodeOrString>, _can_gc: CanGc) -> Result<(), Error>

source

fn After(&self, nodes: Vec<NodeOrString>, _can_gc: CanGc) -> Result<(), Error>

source

fn ReplaceWith( &self, nodes: Vec<NodeOrString>, _can_gc: CanGc, ) -> Result<(), Error>

source

fn Remove(&self)

source

fn GetPreviousElementSibling(&self) -> Option<Root<Dom<Element>>>

source

fn GetNextElementSibling(&self) -> Option<Root<Dom<Element>>>

Implementors§