pub struct TextPart {
pub index: usize,
pub count: usize,
pub source: Range<usize>,
pub bounds: Rect,
/* private fields */
}Expand description
One logical part with original source range, layout bounds and delayed time.
Fields§
§index: usizeReading-order part index.
count: usizeTotal part count before visibility filtering.
source: Range<usize>Original UTF-8 source bytes.
bounds: RectStable paragraph-local bounds.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for TextPart
impl Freeze for TextPart
impl RefUnwindSafe for TextPart
impl Send for TextPart
impl Sync for TextPart
impl Unpin for TextPart
impl UnsafeUnpin for TextPart
impl UnwindSafe for TextPart
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