feat(core/rust/ui): implement Clone for StrBuffer

[no changelog]
pull/2860/head
Martin Milata 1 year ago
parent 4af5939a0b
commit b8abccbc94

@ -20,6 +20,7 @@ use super::ffi;
/// The `off` field represents offset from the `ptr` and allows us to do
/// substring slices while keeping the head pointer as required by GC.
#[repr(C)]
#[derive(Clone)]
pub struct StrBuffer {
ptr: *const u8,
len: u16,

Loading…
Cancel
Save