Docs.rs
fcoreutils-0.14.0
fcoreutils 0.14.0
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
aibrushcomputer
Dependencies
anyhow ^1
normal
base64-simd ^0.8
normal
blake2b_simd ^1
normal
clap ^4
normal
digest ^0.10
normal
itoa ^1
normal
libc ^0.2
normal
md-5 ^0.10
normal
memchr ^2
normal
memmap2 ^0.9
normal
mimalloc ^0.1
normal
rayon ^1
normal
regex ^1
normal
sha1 ^0.10
normal
sha2 ^0.10
normal
thiserror ^2
normal
criterion ^0.8
dev
proptest ^1
dev
tempfile ^3
dev
md-5 ^0.10
normal
sha1 ^0.10
normal
sha2 ^0.10
normal
ring ^0.17
normal
openssl ^0.10
normal
Versions
55.84%
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
Module factor
coreutils_
rs
0.14.0
Module factor
Module Items
Functions
In crate coreutils_
rs
coreutils_rs
Module
factor
Copy item path
Source
Functions
§
factorize
Return the sorted list of prime factors of n (with repetition).
format_
factors
Format a factorization result as “NUMBER: FACTOR FACTOR …” matching GNU factor output. Writes directly to a buffer to avoid per-number String allocation.
write_
factors
Write factorization of a u128 to a buffer. Falls through to the u64 fast path when possible.
write_
factors_
u64
Write factorization of a u64 directly to a buffer. Zero-allocation hot path for the common case (numbers up to 2^64-1).