DVUI

unset

remove modifier

Parameters

#
self:*Mod
*Mod
other:Mod
Mod

Source

Implementation

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