DVUI

Parameters

#
self:*Self
*Self
allocator:Allocator
Allocator
key:K
K
retain_id:?retainToken
?retainToken

Source

Implementation

#
pub fn retain(self: *Self, allocator: Allocator, key: K, retain_id: ?retainToken) Allocator.Error!void {
            if (retain_id) |r| {
                try self.retain_map.put(allocator, key, r);
            } else {
                _ = self.retain_map.remove(key);
            }
        }