UnicodeRange
struct · ferroui-base · v0.5.0
struct UnicodeRange
The UnicodeRange class is used to specify which specific characters
should be considered in a font fallback.
Members
new
fn new(start: i32, end: i32) -> Self
Creates a range with a single segment.
from_segment
fn from_segment(single: UnicodeRangeSegment) -> Self
Creates a range from one segment.
from_segments
fn from_segments(segments: Vec<UnicodeRangeSegment>) -> Self
Creates a range from several segments.
Panics when segments is empty.
default_range
fn default_range() -> Self
The default range, 0-10FFFD.
is_in_range
fn is_in_range(self: &Self, value: i32) -> bool
Determines if given value is in range.
parse
fn parse(s: &str) -> Result<UnicodeRange, FormatError>
Parses a UnicodeRange.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebugStructuralPartialEqPartialEqEqHashDefaultFromStr
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.