mrds::trees::unbalanced

This commit is contained in:
AF 2023-06-16 09:35:29 +00:00
parent 4d635e9e6a
commit e52737c6cf
5 changed files with 12 additions and 5 deletions

View File

@ -1,7 +1,6 @@
//! Traversible binary trees. //! Traversible binary trees.
pub mod algorithms; pub mod algorithms;
pub mod unbalanced;
use std::rc::Rc; use std::rc::Rc;

View File

@ -3,6 +3,7 @@
pub mod flow; pub mod flow;
pub mod func; pub mod func;
pub mod mrds;
pub mod rcore; pub mod rcore;
pub mod rstd; pub mod rstd;
#[cfg(test)] #[cfg(test)]

7
src/mrds.rs Normal file
View File

@ -0,0 +1,7 @@
//! # Memory-resident data strucures
//! Provided as examples of implementing [`flow`] traits.
#[cfg(doc)]
use crate::flow;
pub mod trees;

1
src/mrds/trees.rs Normal file
View File

@ -0,0 +1 @@
pub mod unbalanced;

View File

@ -2,12 +2,11 @@
//! //!
//! Intended for testing. //! Intended for testing.
use std::fmt::Display; use std::{fmt::Display, rc::*};
use crate::flow::traversible::*;
use crate::func::*; use crate::func::*;
use super::*;
pub struct UnbalancedData; pub struct UnbalancedData;
impl PartialEq for UnbalancedData { impl PartialEq for UnbalancedData {
@ -172,7 +171,7 @@ impl<'a, T: Monad<'a>, A: 'a> UnbalancedConstructor<'a, T, A> {
mod tests { mod tests {
use rand::{Rng, SeedableRng}; use rand::{Rng, SeedableRng};
use crate::rstd::tracing::*; use crate::{flow::comparator::*, rstd::tracing::*};
use super::{algorithms::contains::*, algorithms::subset::*, *}; use super::{algorithms::contains::*, algorithms::subset::*, *};