This is equivalent to (starts_tag || ends_tag), i.
e. it tells you whether a range with tag applied to it begins or ends at this.
tag
an iterator
a TextTag, or null
whether tag is toggled on or off at this