Struct rustc_errors::styled_buffer::StyledBuffer [−][src]
pub struct StyledBuffer {
lines: Vec<Vec<StyledChar>>,
}
Fields
lines: Vec<Vec<StyledChar>>
Implementations
Returns content of StyledBuffer
splitted by lines and line styles
Sets chr
with style
for given line
, col
.
If line
does not exist in our buffer, adds empty lines up to the given
and fills the last line with unstyled whitespace.
Sets string
with style
for given line
, starting from col
.
If line
does not exist in our buffer, adds empty lines up to the given
and fills the last line with unstyled whitespace.
For given line
inserts string
with style
before old content of that line,
adding lines if needed
For given line
inserts string
with style
after old content of that line,
adding lines if needed
Set style
for line
, col_start..col_end
range if:
- That line and column range exist in
StyledBuffer
overwrite
istrue
or existing style isStyle::NoStyle
orStyle::Quotation
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
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes