pub trait TextNodeContent {
// Required method
fn mount_text_content(self, ctx: &mut Context, style: Style) -> NodeId;
}Expand description
Polymorphic text payload trait mounted by view! text { { expr } } supporting both static strings and reactive closures without emitting consumer-scope imports.
Required Methods§
Sourcefn mount_text_content(self, ctx: &mut Context, style: Style) -> NodeId
fn mount_text_content(self, ctx: &mut Context, style: Style) -> NodeId
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl TextNodeContent for &String
TextNodeContent implementation mounting a borrowed &String as a static text node.
impl TextNodeContent for &String
TextNodeContent implementation mounting a borrowed &String as a static text node.
Source§impl TextNodeContent for &str
TextNodeContent implementation mounting a string slice as a static text node.
impl TextNodeContent for &str
TextNodeContent implementation mounting a string slice as a static text node.
Source§impl TextNodeContent for Cow<'_, str>
TextNodeContent implementation mounting a Cow<str> as a static text node.
impl TextNodeContent for Cow<'_, str>
TextNodeContent implementation mounting a Cow<str> as a static text node.
Source§impl TextNodeContent for String
TextNodeContent implementation mounting an owned String as a static text node.
impl TextNodeContent for String
TextNodeContent implementation mounting an owned String as a static text node.