fn from(line: String, syntax: &'static Syntax) -> Row {
        let rendered = Row::render(&line);
        let highlights = syntax.highlight(&rendered);
        let len = line.len();
        Row {
            source: line,
            rendered: rendered,
            highlights: highlights,
            len: len,
            syntax: syntax,
        }
    }
/// Create a row, usually from some source text
///
/// * The source text of the line
/// * The Syntax to use to provide syntax highlighting
Create a row, usually from some source text
The source text of the line
The Syntax to use to provide syntax highlighting
Create a row usually from some source text The source text of the line The Syntax to use to provide syntax highlighting
fn from(line: String, syntax: &'static Syntax) -> Row {
        let rendered = Row::render(&line);
        let highlights = syntax.highlight(&rendered);
        let len = line.len();
        Row {
            source: line,
            rendered: rendered,
            highlights: highlights,
            len: len,
            syntax: syntax,
        }
    }
fn from ( line : String , syntax : & ' static Syntax ) -> Row { let rendered = Row :: render ( & line ) ; let highlights = syntax . highlight ( & rendered ) ; let len = line . len ( ) ; Row { source : line , rendered : rendered , highlights : highlights , len : len , syntax : syntax , } }
Create a row, usually from some source text
 The source text of the line
 The Syntax to use to provide syntax highlighting
Create a row usually from some source text The source text of the line The Syntax to use to provide syntax highlighting
line
String
syntax
&'static Syntax