[−][src]Struct rustc_errors::styled_buffer::StyledBuffer
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]
&mut self
)
pub fn render(&mut self) -> Vec<Vec<StyledString>>[src]
pub(in styled_buffer) fn ensure_lines(
&mut self,
line: usize
)[src]
&mut self,
line: usize
)
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]
&mut self,
line: usize,
col_start: usize,
col_end: usize,
style: Style,
overwrite: bool
)
pub fn set_style(
&mut self,
line: usize,
col: usize,
style: Style,
overwrite: bool
)[src]
&mut self,
line: usize,
col: usize,
style: Style,
overwrite: bool
)
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,