From 7f7deec27e69ed110c52caddaa3a0c04430e71d9 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 25 Feb 2026 17:20:58 +0100 Subject: initial account setup --- common/object/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/object/src/lib.rs') diff --git a/common/object/src/lib.rs b/common/object/src/lib.rs index 98e4834..ae8d1cd 100644 --- a/common/object/src/lib.rs +++ b/common/object/src/lib.rs @@ -240,6 +240,11 @@ impl<'a> Object<'a> { self.insert_multi(tag, &[value]) } #[must_use] + #[inline] + pub fn remove(&self, tag: TypedTag) -> ObjectBuffer { + self.insert_multi(tag, &[]) + } + #[must_use] pub fn insert_multi(&self, tag: TypedTag, values: &[T]) -> ObjectBuffer { let prefix = self.tags.partition_point(|&x| x < tag.0.0); let suffix = self.tags.partition_point(|&x| x <= tag.0.0); -- cgit v1.3