mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-27 06:42:02 +00:00
feat(core/rust/ui): implement Clone for StrBuffer
[no changelog]
This commit is contained in:
parent
4af5939a0b
commit
b8abccbc94
@ -20,6 +20,7 @@ use super::ffi;
|
|||||||
/// The `off` field represents offset from the `ptr` and allows us to do
|
/// The `off` field represents offset from the `ptr` and allows us to do
|
||||||
/// substring slices while keeping the head pointer as required by GC.
|
/// substring slices while keeping the head pointer as required by GC.
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct StrBuffer {
|
pub struct StrBuffer {
|
||||||
ptr: *const u8,
|
ptr: *const u8,
|
||||||
len: u16,
|
len: u16,
|
||||||
|
Loading…
Reference in New Issue
Block a user