[][src]Struct buffy::Buffer

pub struct Buffer { /* fields omitted */ }

Buffer holds char with Color's and is of a set size once built

Implementations

impl Buffer[src]

pub fn new(
    width: usize,
    height: usize,
    filler: char,
    fg: Color,
    bg: Color
) -> Self
[src]

Create a new Buffer form width, height, foreground, background color

pub fn replace_line(
    &mut self,
    x: usize,
    y: usize,
    string: &str,
    fg: Color,
    bg: Color
)
[src]

Inserts a string slice into Buffer

pub fn replace_char(
    &mut self,
    x: usize,
    y: usize,
    c: char,
    fg: Color,
    bg: Color
)
[src]

Inserts a char into Buffer

pub fn queue(&mut self) -> Vec<Queued>[src]

all the new changes that have happened to buffer.

Trait Implementations

impl Clone for Buffer[src]

impl Debug for Buffer[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.