pub struct TextSpan {
pub start: usize,
pub end: usize,
pub style: TextSpanStyle,
}Expand description
Un span de RichText: rango de bytes [start, end) + overrides de
estilo (style). Los rangos pueden superponerse — parley aplica los
StyleProperty en orden de inserción, así el caller debería pushar de
menor a mayor especificidad.
Fields§
§start: usize§end: usize§style: TextSpanStyleImplementations§
Trait Implementations§
impl StructuralPartialEq for TextSpan
Auto Trait Implementations§
impl Freeze for TextSpan
impl RefUnwindSafe for TextSpan
impl Send for TextSpan
impl Sync for TextSpan
impl Unpin for TextSpan
impl UnsafeUnpin for TextSpan
impl UnwindSafe for TextSpan
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