unset
remove modifier
Parameters
Source
Implementation
pub fn unset(self: *Mod, other: Mod) void {
const s: u16 = @intFromEnum(self.*);
const t: u16 = @intFromEnum(other);
self.* = @enumFromInt(s & (~t));
}remove modifier
Source
pub fn unset(self: *Mod, other: Mod) void {
const s: u16 = @intFromEnum(self.*);
const t: u16 = @intFromEnum(other);
self.* = @enumFromInt(s & (~t));
}