toNonZeroInt

@SinceKotools(project = Project.Types, version = "3.2")
fun Int.toNonZeroInt(): Result<NonZeroInt>

Returns this integer as a NonZeroInt, or IllegalArgumentException if this integer equals zero.