pub struct CharSegment {
pub index: u32,
pub count: u32,
}Expand description
One run of characters that made it into the text.
Fields§
§index: u32The character index the run starts at.
count: u32How many characters it holds.
Trait Implementations§
Source§impl Clone for CharSegment
impl Clone for CharSegment
Source§fn clone(&self) -> CharSegment
fn clone(&self) -> CharSegment
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 CharSegment
Source§impl Debug for CharSegment
impl Debug for CharSegment
impl Eq for CharSegment
Source§impl PartialEq for CharSegment
impl PartialEq for CharSegment
impl StructuralPartialEq for CharSegment
Auto Trait Implementations§
impl Freeze for CharSegment
impl RefUnwindSafe for CharSegment
impl Send for CharSegment
impl Sync for CharSegment
impl Unpin for CharSegment
impl UnsafeUnpin for CharSegment
impl UnwindSafe for CharSegment
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