pub struct StyleDelta { /* private fields */ }Expand description
Tracks a style transition for efficient escape sequence generation.
Computes the minimal set of escape codes needed to change from the current style to the target style.
Implementations§
Source§impl StyleDelta
impl StyleDelta
Sourcepub fn with_previous(self, style: Style) -> StyleDelta
pub fn with_previous(self, style: Style) -> StyleDelta
Sets the previous style for delta computation.
Trait Implementations§
Source§impl BufferWrite for StyleDelta
impl BufferWrite for StyleDelta
Source§fn write_to_buffer(&self, buffer: &mut Vec<u8>)
fn write_to_buffer(&self, buffer: &mut Vec<u8>)
Appends the VT sequence bytes to the buffer.
Auto Trait Implementations§
impl Freeze for StyleDelta
impl RefUnwindSafe for StyleDelta
impl Send for StyleDelta
impl Sync for StyleDelta
impl Unpin for StyleDelta
impl UnwindSafe for StyleDelta
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