We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc0947a commit 4f75078Copy full SHA for 4f75078
src/control/tag.rs
@@ -69,11 +69,13 @@ pub(crate) trait TagSliceExt {
69
fn fill_tag(&mut self, tag: Tag);
70
71
/// Clears out the control.
72
+ #[inline]
73
fn fill_empty(&mut self) {
74
self.fill_tag(Tag::EMPTY)
75
}
76
77
impl TagSliceExt for [Tag] {
78
79
fn fill_tag(&mut self, tag: Tag) {
80
// SAFETY: We have access to the entire slice, so, we can write to the entire slice.
81
unsafe { self.as_mut_ptr().write_bytes(tag.0, self.len()) }
0 commit comments