pub struct ScalarRange {
pub start: ScalarOffset,
pub end: ScalarOffset,
}Expand description
A half-open range in the Unicode scalar sequence.
Fields§
§start: ScalarOffsetInclusive start offset.
end: ScalarOffsetExclusive end offset.
Implementations§
Source§impl ScalarRange
impl ScalarRange
Sourcepub const fn new(start: ScalarOffset, end: ScalarOffset) -> Self
pub const fn new(start: ScalarOffset, end: ScalarOffset) -> Self
Construct a half-open scalar range.
Trait Implementations§
Source§impl Clone for ScalarRange
impl Clone for ScalarRange
Source§fn clone(&self) -> ScalarRange
fn clone(&self) -> ScalarRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScalarRange
Source§impl Debug for ScalarRange
impl Debug for ScalarRange
impl Eq for ScalarRange
Source§impl Hash for ScalarRange
impl Hash for ScalarRange
Source§impl PartialEq for ScalarRange
impl PartialEq for ScalarRange
impl StructuralPartialEq for ScalarRange
Auto Trait Implementations§
impl Freeze for ScalarRange
impl RefUnwindSafe for ScalarRange
impl Send for ScalarRange
impl Sync for ScalarRange
impl Unpin for ScalarRange
impl UnsafeUnpin 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