pub struct NcbiSqliteTaxonomy { /* private fields */ }Implementations§
Source§impl NcbiSqliteTaxonomy
impl NcbiSqliteTaxonomy
pub fn new(db_url: Option<&str>) -> Self
pub fn from_connection(connection: SqliteConnection) -> Self
Trait Implementations§
Source§impl NcbiTaxonomy for NcbiSqliteTaxonomy
impl NcbiTaxonomy for NcbiSqliteTaxonomy
fn contains_id(&self, taxid: i32) -> bool
fn contains_name(&self, name_str: &str) -> bool
fn is_descendant(&self, name_str: &str, ancestor: &str) -> bool
fn is_descendant_taxid(&self, taxid: i32, ancestor_taxid: i32) -> bool
fn get_name_by_id(&self, taxid: i32) -> Option<String>
fn get_id_by_name(&self, name_str: &str) -> Option<i32>
fn get_lineage(&self, name: &str) -> Option<Vec<i32>>
fn get_distance_to_common_ancestor_taxid( &self, taxid1: i32, taxid2: i32, only_canonical: bool, ) -> Option<(i32, i32)>
fn get_distance_to_common_ancestor( &self, name1: &str, name2: &str, only_canonical: bool, ) -> Option<(i32, String)>
Auto Trait Implementations§
impl !Freeze for NcbiSqliteTaxonomy
impl !RefUnwindSafe for NcbiSqliteTaxonomy
impl Send for NcbiSqliteTaxonomy
impl !Sync for NcbiSqliteTaxonomy
impl Unpin for NcbiSqliteTaxonomy
impl UnwindSafe for NcbiSqliteTaxonomy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self to an expression for Diesel’s query builder. Read more