diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-25 17:20:58 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-25 17:20:58 +0100 |
| commit | 7f7deec27e69ed110c52caddaa3a0c04430e71d9 (patch) | |
| tree | b0880d0407c09bc7fb0e83734c4d4683316fb429 /common/object/src/lib.rs | |
| parent | 3b9ba348c8e77a47786bfcc1af6756e8d3bc7499 (diff) | |
| download | jellything-7f7deec27e69ed110c52caddaa3a0c04430e71d9.tar jellything-7f7deec27e69ed110c52caddaa3a0c04430e71d9.tar.bz2 jellything-7f7deec27e69ed110c52caddaa3a0c04430e71d9.tar.zst | |
initial account setup
Diffstat (limited to 'common/object/src/lib.rs')
| -rw-r--r-- | common/object/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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<T: ValueStore>(&self, tag: TypedTag<T>) -> ObjectBuffer { + self.insert_multi(tag, &[]) + } + #[must_use] pub fn insert_multi<T: ValueStore>(&self, tag: TypedTag<T>, 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); |