Struct script::dom::characterdata::CharacterData
source · #[repr(C)]pub struct CharacterData {
node: Node,
data: DomRefCell<DOMString>,
}
Fields§
§node: Node
§data: DomRefCell<DOMString>
Implementations§
source§impl CharacterData
impl CharacterData
pub fn new_inherited(data: DOMString, document: &Document) -> CharacterData
pub fn clone_with_data( &self, data: DOMString, document: &Document, can_gc: CanGc, ) -> Root<Dom<Node>>
pub fn data(&self) -> Ref<'_, DOMString>
pub fn append_data(&self, data: &str)
fn content_changed(&self)
fn queue_mutation_record(&self)
Trait Implementations§
source§impl Castable for CharacterData
impl Castable for CharacterData
source§impl CharacterDataMethods<DomTypeHolder> for CharacterData
impl CharacterDataMethods<DomTypeHolder> for CharacterData
fn Data(&self) -> DOMString
fn SetData(&self, data: 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, arg: DOMString) -> Result<(), Error>
fn DeleteData(&self, offset: u32, count: u32) -> Result<(), Error>
fn ReplaceData( &self, offset: u32, count: u32, arg: 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>>>
source§impl DomObject for CharacterData
impl DomObject for CharacterData
source§impl HasParent for CharacterData
impl HasParent for CharacterData
source§impl IDLInterface for CharacterData
impl IDLInterface for CharacterData
source§impl MallocSizeOf for CharacterData
impl MallocSizeOf for CharacterData
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl MutDomObject for CharacterData
impl MutDomObject for CharacterData
source§impl PartialEq for CharacterData
impl PartialEq for CharacterData
source§impl ToJSValConvertible for CharacterData
impl ToJSValConvertible for CharacterData
source§impl Traceable for CharacterData
impl Traceable for CharacterData
impl DerivedFrom<CharacterData> for CDATASection
impl DerivedFrom<CharacterData> for CharacterData
impl DerivedFrom<CharacterData> for Comment
impl DerivedFrom<CharacterData> for ProcessingInstruction
impl DerivedFrom<CharacterData> for Text
impl DerivedFrom<EventTarget> for CharacterData
impl DerivedFrom<Node> for CharacterData
impl Eq for CharacterData
Auto Trait Implementations§
impl !Freeze for CharacterData
impl !RefUnwindSafe for CharacterData
impl !Send for CharacterData
impl !Sync for CharacterData
impl Unpin for CharacterData
impl !UnwindSafe for CharacterData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert