Struct regex_syntax::utf8::ScalarRange
source · struct ScalarRange {
start: u32,
end: u32,
}
Fields§
§start: u32
§end: u32
Implementations§
source§impl ScalarRange
impl ScalarRange
sourcefn split(&self) -> Option<(ScalarRange, ScalarRange)>
fn split(&self) -> Option<(ScalarRange, ScalarRange)>
split splits this range if it overlaps with a surrogate codepoint.
Either or both ranges may be invalid.
sourcefn as_ascii(&self) -> Option<Utf8Range>
fn as_ascii(&self) -> Option<Utf8Range>
as_ascii returns this range as a Utf8Range if and only if all scalar values in this range can be encoded as a single byte.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScalarRange
impl RefUnwindSafe for ScalarRange
impl Send for ScalarRange
impl Sync for ScalarRange
impl Unpin for ScalarRange
impl UnwindSafe for ScalarRange
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more