pub struct UnicodeRanges { /* private fields */ }Expand description
A set of Unicode codepoints, as the unicode-range descriptor of CSS. Ranges may overlap.
Implementations§
Source§impl UnicodeRanges
impl UnicodeRanges
Sourcepub fn new(ranges: impl IntoIterator<Item = RangeInclusive<u32>>) -> Self
pub fn new(ranges: impl IntoIterator<Item = RangeInclusive<u32>>) -> Self
The union of ranges, each given by its first and last codepoint (both included).
0x1D49C..=0x1D503 is U+1D49C-1D503, and a single codepoint 0xA5..=0xA5.
pub fn contains(&self, c: char) -> bool
Trait Implementations§
Source§impl Clone for UnicodeRanges
impl Clone for UnicodeRanges
Source§impl Debug for UnicodeRanges
impl Debug for UnicodeRanges
Source§impl Default for UnicodeRanges
impl Default for UnicodeRanges
impl Eq for UnicodeRanges
Source§impl PartialEq for UnicodeRanges
impl PartialEq for UnicodeRanges
impl StructuralPartialEq for UnicodeRanges
Auto Trait Implementations§
impl Forget for UnicodeRanges
impl Freeze for UnicodeRanges
impl Move for UnicodeRanges
impl RefUnwindSafe for UnicodeRanges
impl Send for UnicodeRangeswhere
RawVecInner: Send,
impl Sync for UnicodeRangeswhere
RawVecInner: Sync,
impl Unpin for UnicodeRanges
impl UnsafeUnpin for UnicodeRanges
impl UnwindSafe for UnicodeRangeswhere
RawVecInner: UnwindSafe,
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