Function setSign [src]

Sets the sign of an Managed.

Prototype

pub fn setSign(self: *Managed, positive: bool) void

Parameters

self: *Managedpositive: bool

Source

pub fn setSign(self: *Managed, positive: bool) void { if (positive) { self.metadata &= ~sign_bit; } else { self.metadata |= sign_bit; } }