Struct centaurea_ui::Buffer[][src]

pub struct Buffer<S: Style> {
    pub width: u16,
    pub height: u16,
    pub styles: HashMap<S, ContentStyle>,
    // some fields omitted
}

Fields

width: u16height: u16styles: HashMap<S, ContentStyle>

Implementations

impl<S: Style> Buffer<S>[src]

pub fn canvas<'a>(&'a mut self, frame: Rect) -> Canvas<'a, S>[src]

pub fn set_styles(&mut self, styles: HashMap<S, ContentStyle>)[src]

pub fn resize(&mut self, width: u16, height: u16)[src]

pub fn draw_changes<W: Write>(
    &mut self,
    stdout: &mut W
) -> Result<(), ErrorKind>
[src]

Trait Implementations

impl<S: Style> Default for Buffer<S>[src]

impl<S: Style> Drawable<S> for Buffer<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Buffer<S> where
    S: RefUnwindSafe

impl<S> Send for Buffer<S> where
    S: Send

impl<S> Sync for Buffer<S> where
    S: Sync

impl<S> Unpin for Buffer<S> where
    S: Unpin

impl<S> UnwindSafe for Buffer<S> where
    S: RefUnwindSafe + UnwindSafe

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.