/// split splits this range if it overlaps with a surrogate codepoint.
///
/// Either or both ranges may be invalid.
split splits this range if it overlaps with a surrogate codepoint.
Either or both ranges may be invalid.
split splits this range if it overlaps with a surrogate codepoint . Either or both ranges may be invalid .
fn split(&self) -> Option<(ScalarRange, ScalarRange)> {
        if self.start < 0xE000 && self.end > 0xD7FF {
            Some((ScalarRange {
                start: self.start,
                end: 0xD7FF,
            }, ScalarRange {
                start: 0xE000,
                end: self.end,
            }))
        } else {
            None
        }
    }
fn split ( & self ) -> Option < ( ScalarRange , ScalarRange ) > { if self . start < 0xE000 && self . end > 0xD7FF { Some ( ( ScalarRange { start : self . start , end : 0xD7FF , } , ScalarRange { start : 0xE000 , end : self . end , } ) ) } else { None } }
split splits this range if it overlaps with a surrogate codepoint.
split splits this range if it overlaps with a surrogate codepoint .
&self