// Eq returns true if the left Decimal128Element is equal to the right Decimal128Element.
// When both are nil Eq returns false because nil actualy signifies "unknown"
// and you can't compare two things when you don't know what they are.
Eq returns true if the left Decimal128Element is equal to the right Decimal128Element.
When both are nil Eq returns false because nil actualy signifies "unknown"
and you can't compare two things when you don't know what they are.
// Eq returns true if the left Decimal128Element is equal to the right Decimal128Element . // When both are nil Eq returns false because nil actualy signifies " unknown " // and you can ' t compare two things when you don ' t know what they are .
func (e Decimal128Element) Eq(r Element) (bool, error) {
	if e.IsNil() && r.IsNil() {
		return false, nil
	}
	return e.compare(r, func(left, right decimal128.Num) bool {
		return left.HighBits() == right.HighBits() && left.LowBits() == right.LowBits()
	})
}
func ( e Decimal128Element ) Eq ( r Element ) ( bool , error ) { if e . IsNil ( ) && r . IsNil ( ) { return false , nil } return e . compare ( r , func ( left , right decimal128 . Num ) bool { return left . HighBits ( ) == right . HighBits ( ) && left . LowBits ( ) == right . LowBits ( ) } ) }
Eq returns true if the left Decimal128Element is equal to the right Decimal128Element.
Eq returns true if the left Decimal128Element is equal to the right Decimal128Element .