enum
Chem::BondOrder
Overview
A BondOrder provides a type-safe representation of the bond order
of a covalent between two atoms.
Defined in:
chem/connectivity.crEnum Members
-
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 Method Summary
-
#==(rhs : Int) : Bool
Returns
trueif the integer representation of the bond order is equal to rhs, elsefalse. -
#double?
Returns
trueif this enum value equalsDouble -
#pred : self
Decreases the bond order.
-
#single?
Returns
trueif this enum value equalsSingle -
#succ : self
Increases the bond order.
-
#to_char : Char
Returns the char representation of the bond order.
-
#triple?
Returns
trueif this enum value equalsTriple -
#zero?
Returns
trueif this enum value equalsZero
Instance Method Detail
Returns true if the integer representation of the bond order is
equal to rhs, else false.