Implement Clone for Buffer and use Arc::make_mut
This commit is contained in:
parent
0a11fb1045
commit
46d60a3723
4 changed files with 21 additions and 10 deletions
|
|
@ -4,7 +4,7 @@ use alloc::{string::String, vec::Vec};
|
|||
use crate::{Align, AttrsList, FontSystem, LayoutLine, ShapeBuffer, ShapeLine, Shaping, Wrap};
|
||||
|
||||
/// A line (or paragraph) of text that is shaped and laid out
|
||||
#[derive(Debug)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct BufferLine {
|
||||
//TODO: make this not pub(crate)
|
||||
text: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue