UnicodeRangeSegment
struct · ferroui-base · v0.5.0
struct UnicodeRangeSegment
One contiguous range of code points.
Members
new
const fn new(start: i32, end: i32) -> Self
start
const fn start(self: &Self) -> i32
Get the start of the unicode range.
end
const fn end(self: &Self) -> i32
Get the end of the unicode range.
is_in_range
const fn is_in_range(self: &Self, value: i32) -> bool
Determines if given value is in range.
parse
fn parse(s: &str) -> Result<UnicodeRangeSegment, FormatError>
Parses a UnicodeRangeSegment: U+20, U+30?? or 0-10FFFD.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqEqHashFromStr
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.