#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![cfg_attr(doc_cfg, feature(doc_cfg))]
#[allow(deref_nullptr)]
#[allow(rustdoc::broken_intra_doc_links)]
pub mod bindings;
mod _macros; mod edge_differences;
mod edge_table;
pub mod error;
mod flags;
mod individual_table;
pub mod metadata;
mod migration_table;
mod mutation_table;
mod newtypes;
mod node_table;
mod population_table;
pub mod prelude;
mod site_table;
mod sys;
mod table_collection;
mod table_iterator;
pub mod table_views;
mod traits;
mod tree_interface;
mod trees;
pub mod types;
mod util;
pub use bindings::TSK_NODE_IS_SAMPLE;
pub use bindings::tsk_flags_t;
use bindings::tsk_id_t;
use bindings::tsk_size_t;
pub(crate) const TSK_NULL: tsk_id_t = -1;
pub use edge_differences::*;
pub use edge_table::{EdgeTable, EdgeTableRow, OwningEdgeTable};
pub use error::TskitError;
pub use flags::*;
pub use individual_table::{IndividualTable, IndividualTableRow, OwningIndividualTable};
pub use migration_table::{MigrationTable, MigrationTableRow, OwningMigrationTable};
pub use mutation_table::{MutationTable, MutationTableRow, OwningMutationTable};
pub use newtypes::*;
pub use node_table::{NodeTable, NodeTableRow, OwningNodeTable};
pub use population_table::{OwningPopulationTable, PopulationTable, PopulationTableRow};
pub use site_table::{OwningSiteTable, SiteTable, SiteTableRow};
pub use table_collection::TableCollection;
pub use traits::IndividualLocation;
pub use traits::IndividualParents;
pub use tree_interface::{NodeTraversalOrder, TreeInterface};
pub use trees::{Tree, TreeSequence};
#[cfg(feature = "provenance")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "provenance")))]
pub mod provenance;
pub type TskReturnValue = Result<i32, TskitError>;
pub type RawFlags = crate::bindings::tsk_flags_t;
pub fn version() -> &'static str {
env!("CARGO_PKG_VERSION")
}
pub fn c_api_major_version() -> u32 {
bindings::TSK_VERSION_MAJOR
}
pub fn c_api_minor_version() -> u32 {
bindings::TSK_VERSION_MINOR
}
pub fn c_api_patch_version() -> u32 {
bindings::TSK_VERSION_PATCH
}
pub fn c_api_version() -> String {
format!(
"{}.{}.{}",
c_api_major_version(),
c_api_minor_version(),
c_api_patch_version()
)
}
#[cfg(test)]
mod tests {
use super::c_api_version;
#[test]
fn test_c_api_version() {
let _ = c_api_version();
}
}
mod test_fixtures;
mod test_simplification;
mod test_tsk_variables;