pub struct Decor {
pub from: usize,
pub to: usize,
pub s: String,
pub fx: Option<Fx>,
}Expand description
A styled range of an editor’s text (UTF-16 offsets).
Fields§
§from: usizeStart.
to: usizeEnd.
s: StringStyle tokens.
fx: Option<Fx>An effect.
Trait Implementations§
impl Eq for Decor
impl StructuralPartialEq for Decor
Auto Trait Implementations§
impl Freeze for Decor
impl RefUnwindSafe for Decor
impl Send for Decor
impl Sync for Decor
impl Unpin for Decor
impl UnsafeUnpin for Decor
impl UnwindSafe for Decor
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