combine
combine two modifiers
Parameters
Source
Implementation
pub fn combine(self: *Mod, other: Mod) void {
const s: u16 = @intFromEnum(self.*);
const t: u16 = @intFromEnum(other);
self.* = @enumFromInt(s | t);
}combine two modifiers
Source
pub fn combine(self: *Mod, other: Mod) void {
const s: u16 = @intFromEnum(self.*);
const t: u16 = @intFromEnum(other);
self.* = @enumFromInt(s | t);
}