pub struct CodeUnitRange {
pub start: CodeUnitOffset,
pub end: CodeUnitOffset,
}Expand description
A half-open range in the exact UTF-16 code-unit sequence.
Fields§
§start: CodeUnitOffsetInclusive start offset.
end: CodeUnitOffsetExclusive end offset.
Implementations§
Source§impl CodeUnitRange
impl CodeUnitRange
Sourcepub const fn new(start: CodeUnitOffset, end: CodeUnitOffset) -> Self
pub const fn new(start: CodeUnitOffset, end: CodeUnitOffset) -> Self
Construct a half-open code-unit range.
Trait Implementations§
Source§impl Clone for CodeUnitRange
impl Clone for CodeUnitRange
Source§fn clone(&self) -> CodeUnitRange
fn clone(&self) -> CodeUnitRange
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 CodeUnitRange
Source§impl Debug for CodeUnitRange
impl Debug for CodeUnitRange
impl Eq for CodeUnitRange
Source§impl Hash for CodeUnitRange
impl Hash for CodeUnitRange
Source§impl PartialEq for CodeUnitRange
impl PartialEq for CodeUnitRange
impl StructuralPartialEq for CodeUnitRange
Auto Trait Implementations§
impl Freeze for CodeUnitRange
impl RefUnwindSafe for CodeUnitRange
impl Send for CodeUnitRange
impl Sync for CodeUnitRange
impl Unpin for CodeUnitRange
impl UnsafeUnpin for CodeUnitRange
impl UnwindSafe for CodeUnitRange
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