Function nix::unistd::truncate

source ยท
pub fn truncate<P: ?Sized + NixPath>(path: &P, len: off_t) -> Result<()>
Expand description

Truncate a file to a specified length

See also truncate(2)