A wrapper around std::Vec that guarantees at least one element.
# Cargo.toml
[dependencies]
vec1 = "1.12.1"No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Vec1 from a Vec, returning an error if the Vec is empty.
Ensure the Vec has at least one element before calling try_from_vec, or handle the error.
No dependency data recorded yet.