pub fn new<S>(content: S) -> Self
    where
        S: Into<StyledString>,
    {
        let content = content.into();

        TextContent {
            content: Arc::new(Mutex::new(TextContentInner {
                content,
                size_cache: None,
            })),
        }
    }
/// Creates a new text content around the given value.
///
/// Parses the given value.
Creates a new text content around the given value.
Parses the given value.
Creates a new text content around the given value . Parses the given value .
pub fn new<S>(content: S) -> Self
    where
        S: Into<StyledString>,
    {
        let content = content.into();
        TextContent {
            content: Arc::new(Mutex::new(TextContentInner {
                content,
                size_cache: None,
            })),
        }
    }
pub fn new < S > ( content : S ) -> Self where S : Into < StyledString > , { let content = content . into ( ) ; TextContent { content : Arc :: new ( Mutex :: new ( TextContentInner { content , size_cache : None , } ) ) , } }
Creates a new text content around the given value.
Creates a new text content around the given value .
content
S
content
S