pub fn new<S>(content: S) -> Self
    where
        S: Into<StyledString>,
    {
        Self::new_with_content(TextContent::new(content))
    }
/// Creates a new TextView with the given content.
Creates a new TextView with the given content.
Creates a new TextView with the given content .
pub fn new<S>(content: S) -> Self
    where
        S: Into<StyledString>,
    {
        Self::new_with_content(TextContent::new(content))
    }
pub fn new < S > ( content : S ) -> Self where S : Into < StyledString > , { Self :: new_with_content ( TextContent :: new ( content ) ) }
Creates a new TextView with the given content.
Creates a new TextView with the given content .
content
S
content
S