Docs.rs
libc-rs-0.2.5
libc-rs 0.2.5
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
18 November 2026
Links
Repository
crates.io
Source
Owners
pathscale
Dependencies
Versions
49.45%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
trunc
libc_rs
0.2.5
In libc_
rs::
math
libc_rs
::
math
Function
trunc
Copy item path
Source
pub fn trunc(x:
f64
) ->
f64
Expand description
Returns the integer part of
x
, rounding toward zero.