mrds::trees::unbalanced
This commit is contained in:
parent
4d635e9e6a
commit
e52737c6cf
@ -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;
|
||||||
|
|
||||||
|
@ -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
7
src/mrds.rs
Normal 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
1
src/mrds/trees.rs
Normal file
@ -0,0 +1 @@
|
|||||||
|
pub mod unbalanced;
|
@ -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::*, *};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user