diff --git a/src/rust_api.rs b/src/rust_api.rs index f52f217..3de1555 100644 --- a/src/rust_api.rs +++ b/src/rust_api.rs @@ -337,6 +337,12 @@ impl FromStr for DnaSequence { } } +impl AsRef<[T]> for DnaSequence { + fn as_ref(&self) -> &[T] { + self.as_slice() + } +} + impl DnaSequence { /// Return canonical isomorphic DNA sequence. ///