# RangeBounds

`import { RangeBounds } from "destack:range";`

Common protocol for range bounds.

```ds title="RangeBounds"
export newtype interface RangeBounds<T> {
    startBound(): Bound<&readonly T>;
    endBound(): Bound<&readonly T>;
    contains<U: PartialCompare<T>>(value: &'b readonly U): boolean;
}
```

[language/library/src/range/bound.ds:29:55](https://github.com/destack-sh/destack/blob/main/language/library/src/range/bound.ds#L29-L55)

## Members

### `startBound(): Bound<&readonly T>`

Return the start bound.

### `endBound(): Bound<&readonly T>`

Return the end bound.

### `contains<U: PartialCompare<T>>(value: &'b readonly U): boolean`

Return whether this range contains `value`.
