toNonZeroInt

@SinceKotoolsTypes(version = "1.1")
fun Int.toNonZeroInt(): Result<NonZeroInt>

Returns this integer as an encapsulated NonZeroInt, or returns an encapsulated IllegalArgumentException if this integer equals zero.