bitomc 0.1.4

BitOMC wallet and indexer
Documentation
pub(crate) trait IntoUsize {
  fn into_usize(self) -> usize;
}

impl IntoUsize for u32 {
  fn into_usize(self) -> usize {
    self.try_into().unwrap()
  }
}

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

  #[test]
  fn into_usize() {
    u32::MAX.into_usize();
  }
}