Add BufferLine::into_text
This commit is contained in:
parent
8614a7a398
commit
cd15418315
1 changed files with 5 additions and 0 deletions
|
|
@ -50,6 +50,11 @@ impl BufferLine {
|
|||
}
|
||||
}
|
||||
|
||||
/// Consume this line, returning only its text contents as a String.
|
||||
pub fn into_text(self) -> String {
|
||||
self.text
|
||||
}
|
||||
|
||||
/// Get attributes list
|
||||
pub fn attrs_list(&self) -> &AttrsList {
|
||||
&self.attrs_list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue