pub fn new_with_content(content: TextContent) -> Self {
        TextView {
            content: content.content,
            effect: Effect::Simple,
            rows: Vec::new(),
            scrollable: true,
            scrollbase: ScrollBase::new(),
            scroll_strategy: ScrollStrategy::KeepRow,
            align: Align::top_left(),
            last_size: Vec2::zero(),
            width: None,
        }
    }
/// Creates a new TextView using the given `Arc<Mutex<String>>`.
///
/// If you kept a clone of the given content, you'll be able to update it
/// remotely.
///
/// # Examples
///
/// ```rust
/// # use cursive::views::{TextView, TextContent};
/// let mut content = TextContent::new("content");
/// let view = TextView::new_with_content(content.clone());
///
/// // Later, possibly in a different thread
/// content.set_content("new content");
/// assert!(content.get_content().source().contains("new"));
/// ```
Creates a new TextView using the given `Arc>`.
If you kept a clone of the given content, you'll be able to update it
remotely.
Creates a new TextView using the given ` Arc > ` . If you kept a clone of the given content you ' ll be able to update it remotely .
pub fn new_with_content(content: TextContent) -> Self {
        TextView {
            content: content.content,
            effect: Effect::Simple,
            rows: Vec::new(),
            scrollable: true,
            scrollbase: ScrollBase::new(),
            scroll_strategy: ScrollStrategy::KeepRow,
            align: Align::top_left(),
            last_size: Vec2::zero(),
            width: None,
        }
    }
pub fn new_with_content ( content : TextContent ) -> Self { TextView { content : content . content , effect : Effect :: Simple , rows : Vec :: new ( ) , scrollable : true , scrollbase : ScrollBase :: new ( ) , scroll_strategy : ScrollStrategy :: KeepRow , align : Align :: top_left ( ) , last_size : Vec2 :: zero ( ) , width : None , } }
Creates a new TextView using the given `Arc<Mutex<String>>`.
Creates a new TextView using the given ` Arc<Mutex<String >> ` .
content
TextContent
content
TextContent
examples
None
use cursive::views::{textview, textcontent};
let mut content = TextContent::new("content");
let view = TextView::new_with_content(content.clone()).

Later, possibly in a different thread
content.set_content("new content");
assert!(content.get_content().source().contains("new"));
```
let mut content = TextContent :: new ( " content " ) ; let view = TextView :: new_with_content ( content . clone () ) . Later possibly in a different thread content . set_content ( " new content " ) ; assert! ( content . get_content () . source () . contains ( " new " )) ; ` ` `