pub struct ScriptRun {
pub start: usize,
pub end: usize,
pub script: Script,
}Expand description
A contiguous run of characters sharing the same resolved script.
Indices are byte offsets into the source string for efficient slicing.
Fields§
§start: usizeStart byte offset (inclusive) in the source string.
end: usizeEnd byte offset (exclusive) in the source string.
script: ScriptResolved script for this run.
Implementations§
Trait Implementations§
impl Eq for ScriptRun
impl StructuralPartialEq for ScriptRun
Auto Trait Implementations§
impl Freeze for ScriptRun
impl RefUnwindSafe for ScriptRun
impl Send for ScriptRun
impl Sync for ScriptRun
impl Unpin for ScriptRun
impl UnsafeUnpin for ScriptRun
impl UnwindSafe for ScriptRun
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.