Skip to main content

is_in_exclusion

Function is_in_exclusion 

Source
pub fn is_in_exclusion(position: usize, regions: &[CodeBlockRegion]) -> bool
Expand description

Checks if a byte position falls within any exclusion region.

§Arguments

  • position - The byte position to check.
  • regions - The list of exclusion regions (e.g., code blocks).

§Returns

true if the position is inside any exclusion region.