checked_cast 0.0.3

A small macro to deal with the libc typedef hell.
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 0 items with examples
  • Size
  • Source code size: 2.83 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.06 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Jurily

A small macro to deal with the libc typedef hell.

Build Status

#![feature(phase)]
extern crate core;
#[phase(plugin)] extern crate checked_cast;

let foo: c_long = -1;
let bar: c_uint = checked_cast!(foo, c_uint).unwrap(); // panic