pub struct TextNode { /* private fields */ }Expand description
Represents a text node in the virtual DOM.
Text nodes may optionally be bound to a reactive signal for automatic updates.
Implementations§
Source§impl TextNode
impl TextNode
pub fn get_content(&self) -> &String
pub fn get_mut_content(&mut self) -> &mut String
pub fn set_content(&mut self, val: String) -> &mut Self
pub fn get_signal(&self) -> Signal<String>
pub fn try_get_signal(&self) -> &Option<Signal<String>>
pub fn get_mut_signal(&mut self) -> &mut Option<Signal<String>>
pub fn set_signal(&mut self, val: Option<Signal<String>>) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextNode
impl !RefUnwindSafe for TextNode
impl !Send for TextNode
impl !Sync for TextNode
impl Unpin for TextNode
impl UnsafeUnpin for TextNode
impl !UnwindSafe for TextNode
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