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.cr

Enum 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

Instance Method Detail

def ==(rhs : Int) : Bool #

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


[View source]
def double? #

[View source]
def pred : self #

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


[View source]
def single? #

[View source]
def succ : self #

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


[View source]
def to_char : Char #

Returns the char representation of the bond order.


[View source]
def triple? #

[View source]
def zero? #

[View source]