pub struct TextData { /* private fields */ }Expand description
The fields TextNode adds. format and detail are kept as the JS
number they parsed to, so a document writes back exactly what JS writes;
JS’s bitwise operators read them as ToInt32.
text is a Rust string: offsets into it are UTF-16 code units, as in JS,
converted where they are used (rust/DESIGN.md).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for TextData
impl Freeze for TextData
impl Move for TextData
impl RefUnwindSafe for TextData
impl Send for TextData
impl Sync for TextData
impl Unpin for TextData
impl UnsafeUnpin for TextData
impl UnwindSafe for TextData
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