[][src]Struct term_fb::Buf

pub struct Buf {
    pub used: bool,
    pub quit: bool,
    pub show_fps: bool,
    // some fields omitted
}

Fields

used: boolquit: boolshow_fps: bool

Methods

impl Buf
[src]

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

pub fn from_str(s: &str) -> Self
[src]

pub fn from_lines(s: &[&str]) -> Self
[src]

pub fn empty() -> Self
[src]

pub fn new(width: usize, height: usize, character: char) -> Self
[src]

pub fn blit(&mut self, character: char, coord: Coord)
[src]

pub fn blit_line(&mut self, character: char, start: Coord, end: Coord)
[src]

pub fn blit_text(&mut self, text: &str, coord: Coord) -> Coord
[src]

pub fn blit_int(
    &mut self,
    int: impl Integer,
    coord: Coord
) -> Coord
[src]

pub fn blit_float(
    &mut self,
    float: impl Float,
    precision: usize,
    coord: Coord
) -> Coord
[src]

pub fn copy_from(&mut self, other: &Buf)
[src]

pub fn lines(
    &self
) -> impl Iterator<Item = &[char]>
[src]

Trait Implementations

impl Eq for Buf
[src]

impl PartialOrd<Buf> for Buf
[src]

impl PartialEq<Buf> for Buf
[src]

impl Clone for Buf
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for Buf
[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Debug for Buf
[src]

Auto Trait Implementations

impl Send for Buf

impl Sync for Buf

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T