Function setSign [src]
Sets the sign of an Managed.
Prototype
pub fn setSign(self: *Managed, positive: bool) void
Parameters
self: *Managed
positive: bool
Source
pub fn setSign(self: *Managed, positive: bool) void {
if (positive) {
self.metadata &= ~sign_bit;
} else {
self.metadata |= sign_bit;
}
}