pub struct RenderState {
pub style: Style,
pub hyperlink: Option<String>,
pub parse: ParseState,
}Expand description
Per-source rendering state that persists across line renders. Carries the
SGR style register and the current OSC 8 hyperlink so that an unclosed
\x1b[31m on line N keeps line N+1 red until reset.
Fields§
§style: Style§hyperlink: Option<String>§parse: ParseStateTrait Implementations§
Source§impl Clone for RenderState
impl Clone for RenderState
Source§fn clone(&self) -> RenderState
fn clone(&self) -> RenderState
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 moreSource§impl Debug for RenderState
impl Debug for RenderState
Source§impl Default for RenderState
impl Default for RenderState
Source§fn default() -> RenderState
fn default() -> RenderState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RenderState
impl RefUnwindSafe for RenderState
impl Send for RenderState
impl Sync for RenderState
impl Unpin for RenderState
impl UnsafeUnpin for RenderState
impl UnwindSafe for RenderState
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