rsdiff-core 0.0.2

This is the core library for the Acme project. It contains the core primitives that are used throughout the project.
Documentation
/*
    Appellation: ids <module>
    Contrib: FL03 <jo3mccain@icloud.com>
*/
pub use self::{kinds::*, traits::*};

pub(crate) mod traits;

pub(crate) mod kinds {
    pub use self::{atomic::AtomicId, indexed::IndexId};

    pub mod atomic;
    pub mod indexed;
}

#[cfg(test)]
mod tests {
    use super::AtomicId;
    use super::traits::*;

    #[test]
    fn test_id() {
        let id = 0usize.get();
        assert_eq!(id, &0);
        let atomic = AtomicId::new();
        let aid = Id::<usize>::get(&atomic);
        assert_ne!(**aid, *id);
    }
}