Function isNegative [src]
Return true if a field element is negative
Prototype
pub inline fn isNegative(a: Fe) bool
Parameters
a: Fe
Source
pub inline fn isNegative(a: Fe) bool {
return (a.toBytes()[0] & 1) != 0;
}
pub inline fn isNegative(a: Fe) bool
a: Fe
pub inline fn isNegative(a: Fe) bool {
return (a.toBytes()[0] & 1) != 0;
}