'Returns True if this node conflicts with a given template segment.'

def conflicts_with(self, segment):

    assert (not self.matches(segment))
    other = CompiledRouterNode(segment)
    if self.is_var:
        if self.is_complex:
            if other.is_complex:
                return (_FIELD_PATTERN.sub('v', self.raw_segment) == _FIELD_PATTERN.sub('v', segment))
            return False
        else:
            return (other.is_var and (not other.is_complex))
    return False
