Hi,
I've found that your implementation of From<i32> for SwapInterval panics if the given value is out of range. However, From trait seems not intended to be used with panic; I would like to purpose replace it with TryFrom<i32> implementation (this purpose is a breaking change).