ps-uuid 0.1.0-0

An opinionated UUID implementation.
Documentation
use crate::{NodeId, NODE_ID_BYTES};

impl NodeId {
    /// Returns a copy of the inner byte array.
    #[must_use]
    pub const fn to_bytes(&self) -> [u8; NODE_ID_BYTES] {
        self.bytes
    }
}

#[cfg(test)]
mod tests {
    use crate::NodeId;

    #[test]
    fn to_bytes() {
        let id = NodeId::from([1, 2, 3, 4, 5, 6]);

        assert_eq!(id.to_bytes(), [1, 2, 3, 4, 5, 6]);
    }
}