Fix mutable slice API
* Change SharedVector::as_mut_slice() to SharedVector::make_mut_slice() * SharedPixelBuffer::as_mut_slice and SharedPixelBuffer::make_mut_slice() * SharedPixelBuffer::as_bytes_mut() to SharedPixelBuffer::make_mut_bytes() This is consistent with Rc::make_mut() and is supposed to emphasize that, unlike the usual as_* operations, it is not a free operation but may involve work (detaching the data by cloning it). Amends commit 7384ebdc
显示
- CHANGELOG.md 1 个添加, 1 个删除CHANGELOG.md
- sixtyfps_runtime/corelib/graphics/brush.rs 2 个添加, 2 个删除sixtyfps_runtime/corelib/graphics/brush.rs
- sixtyfps_runtime/corelib/graphics/image.rs 4 个添加, 4 个删除sixtyfps_runtime/corelib/graphics/image.rs
- sixtyfps_runtime/corelib/layout.rs 2 个添加, 2 个删除sixtyfps_runtime/corelib/layout.rs
- sixtyfps_runtime/corelib/sharedvector.rs 3 个添加, 3 个删除sixtyfps_runtime/corelib/sharedvector.rs
- sixtyfps_runtime/interpreter/value_model.rs 1 个添加, 1 个删除sixtyfps_runtime/interpreter/value_model.rs
- sixtyfps_runtime/rendering_backends/qt/qt_widgets.rs 1 个添加, 1 个删除sixtyfps_runtime/rendering_backends/qt/qt_widgets.rs
想要评论请 注册 或 登录