cvt 0.1.2

Expose the cvt function from Rust libstd.
Documentation
  • Coverage
  • 33.33%
    1 out of 3 items documented0 out of 0 items with examples
  • Size
  • Source code size: 16.84 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.05 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
  • marmistrz/cvt
    3 1 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • marmistrz

cvt

Build Status Docs crates-io-badge

This package exposes the cvt function used extensively by libstd to convert platform-specific syscall error codes to std::io::Result.

Usually syscalls use return values for errors, the conventions differ. For instance, on Unix 0 means success on Unix but failure on Windows.

While those conventions are not always followed, they usually are and cvt is there to reduce the mental bookkeeping and make it easier to handle syscall errors.

The code was mostly copied over from Rust libstd, because the function is not public.