pub struct TextNode {
pub content: String,
pub style: Option<Style>,
}Expand description
Fields§
§content: StringThe literal text content.
style: Option<Style>Optional inline style of the text.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TextNode
Auto Trait Implementations§
impl Freeze for TextNode
impl RefUnwindSafe for TextNode
impl Send for TextNode
impl Sync for TextNode
impl Unpin 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