Skip to Content
VectorLib

Signum

vectorlib::Signum — fields, methods, parameters and return types.


pub trait Signum: Copy

Types LemLib's sgn template is instantiated with.

View source

Methods

Prop

Type

sgn

fn sgn(self) -> Self

value < 0 ? -1 : 1

Returns

Self

View source

On this page