Class: String

Inherits:
Object show all
Defined in:
lib/rust/core/types/datatype.rb,
lib/rust/stats/probabilities.rb

Instance Method Summary collapse

Instance Method Details

#_rust_prob_distance(other) ⇒ Object

Computes the distance between this and another string.

Raises:

  • (TypeError)


39
40
41
42
43
# File 'lib/rust/stats/probabilities.rb', line 39

def _rust_prob_distance(other)
    raise TypeError, "no implicit conversion of #{other.class} into String" unless other.is_a? String
    
    return self.bytes._rust_prob_distance other.bytes
end

#to_RObject



186
187
188
# File 'lib/rust/core/types/datatype.rb', line 186

def to_R
    return self.inspect
end