abstract struct Number

Overview

The top-level number type.

Included Modules

Defined in:

cassowary/number.cr

Instance Method Summary

Instance Method Detail

def !=(other : Cassowary::Operand) : NoReturn #

Fails to compile: an inequation is not a linear constraint. See Cassowary::Operand#!=.


[View source]

Returns other multiplied by this number.


[View source]

Returns the sum of this number and other.


[View source]

Returns the difference of this number and other.


[View source]

Returns a required constraint that this number is at most other.


[View source]

Returns a required constraint that this number equals other.


[View source]

Returns a required constraint that this number is at least other.


[View source]