pub trait SequenceCollectionExt {
// Required methods
fn from_fasta<P: AsRef<Path>>(file_path: P) -> Result<SequenceCollection>;
fn from_rgsi<P: AsRef<Path>>(file_path: P) -> Result<SequenceCollection>;
fn from_path_no_cache<P: AsRef<Path>>(
file_path: P,
) -> Result<SequenceCollection>;
fn from_path_with_cache<P: AsRef<Path>>(
file_path: P,
read_cache: bool,
write_cache: bool,
) -> Result<SequenceCollection>;
fn write_collection_rgsi<P: AsRef<Path>>(&self, file_path: P) -> Result<()>;
fn write_rgsi(&self) -> Result<()>;
fn to_record(&self) -> SequenceCollectionRecord;
fn write_fasta<P: AsRef<Path>>(
&self,
file_path: P,
line_width: Option<usize>,
) -> Result<()>;
}Expand description
Extension trait for SequenceCollection with filesystem-dependent methods.
Required Methods§
fn from_fasta<P: AsRef<Path>>(file_path: P) -> Result<SequenceCollection>
fn from_rgsi<P: AsRef<Path>>(file_path: P) -> Result<SequenceCollection>
fn from_path_no_cache<P: AsRef<Path>>( file_path: P, ) -> Result<SequenceCollection>
fn from_path_with_cache<P: AsRef<Path>>( file_path: P, read_cache: bool, write_cache: bool, ) -> Result<SequenceCollection>
fn write_collection_rgsi<P: AsRef<Path>>(&self, file_path: P) -> Result<()>
fn write_rgsi(&self) -> Result<()>
fn to_record(&self) -> SequenceCollectionRecord
fn write_fasta<P: AsRef<Path>>( &self, file_path: P, line_width: Option<usize>, ) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.