Returns the next smaller value adjacent to t or t if there is
no smaller value.
Returns the next greater value adjacent to t or t if there is
no greater value.
Returns the next smaller value adjacent to t or None if there is
no smaller value.
Returns the next greater value adjacent to t or None if there is
no greater value.
Type class that provides the next greater or next smaller value for a given argument.