[−][src]Struct rustc_errors::styled_buffer::StyledBuffer

pub struct StyledBuffer {
    text: Vec<Vec<char>>,
    styles: Vec<Vec<Style>>,
}

Fields

text: Vec<Vec<char>>styles: Vec<Vec<Style>>

Implementations

impl StyledBuffer[src]

pub fn new() -> StyledBuffer[src]

pub(in styled_buffer) fn replace_tabs(
    &mut self
)
[src]

pub fn render(&mut self) -> Vec<Vec<StyledString>>[src]

pub(in styled_buffer) fn ensure_lines(
    &mut self,
    line: usize
)
[src]

pub fn putc(&mut self, line: usize, col: usize, chr: char, style: Style)[src]

pub fn puts(&mut self, line: usize, col: usize, string: &str, style: Style)[src]

pub fn prepend(&mut self, line: usize, string: &str, style: Style)[src]

pub fn append(&mut self, line: usize, string: &str, style: Style)[src]

pub fn num_lines(&self) -> usize[src]

pub fn set_style_range(
    &mut self,
    line: usize,
    col_start: usize,
    col_end: usize,
    style: Style,
    overwrite: bool
)
[src]

pub fn set_style(
    &mut self,
    line: usize,
    col: usize,
    style: Style,
    overwrite: bool
)
[src]

Trait Implementations

impl Debug for StyledBuffer[src]

Auto Trait Implementations

impl RefUnwindSafe for StyledBuffer

impl Send for StyledBuffer

impl Sync for StyledBuffer

impl Unpin for StyledBuffer

impl UnwindSafe for StyledBuffer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.