contains method

bool contains(
  1. Pos pos
)

Returns whether the given position is within the bounds of the buffer.

Implementation

bool contains(Pos pos) => bounds.contains(pos);