Sha256: 2e14262a43ac70de8342f0fb2d1d28fe776c549e54d9698a283e82ae32933638
Contents?: true
Size: 414 Bytes
Versions: 75
Compression:
Stored size: 414 Bytes
Contents
## Notes on Rust implementation By using private fields in structs with public `new` functions returning `Option` or `Result` (as here with `DNA::new` & `RNA::new`), we can guarantee that the internal representation of `DNA` is correct. Because every valid DNA string has a valid RNA string, we don't need to return a `Result`/`Option` from `to_rna`. This explains the type signatures you will see in the tests.
Version data entries
75 entries across 75 versions & 1 rubygems