enum

Chem::BondOrder

Inherits Enum / Comparable / Value / Object

A BondOrder provides a type-safe representation of the bond order of a covalent between two atoms.

Constants

Zero = 0

Zero bond order, e.g., Schrodinger represents bonds between metals as zero-order bonds. May also indicate unknown or unspecified order.

Single = 1

Single bond order

Double = 2

Double bond order

Triple = 3

Triple bond order

Instance methods

==(rhs : Int) : Bool

Returns true if the integer representation of the bond order is equal to rhs, else false.

Source
double?

Returns true if this enum value equals Double

Source
pred

Decreases the bond order. Raises Error if the bond order is zero.

Source
single?

Returns true if this enum value equals Single

Source
succ

Increases the bond order. Raises Error if the bond order is triple.

Source
to_char

Returns the char representation of the bond order.

Source
triple?

Returns true if this enum value equals Triple

Source
zero?

Returns true if this enum value equals Zero

Source