[][src]Struct image2ascii::Char2DArray

pub struct Char2DArray {
    pub buffer: Vec<Vec<char>>,
}

2-d array of chars

Fields

buffer: Vec<Vec<char>>

2-d array of chars by Vec

Implementations

impl Char2DArray[src]

pub fn new(width: usize, height: usize) -> Char2DArray[src]

create Char2DArray create Char2DArray and initialize value by ' '

pub fn to_lines(&self) -> Vec<String>[src]

conver to Vec

pub fn save(&self, save_file: &str) -> Result<()>[src]

save to file

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> SetParameter for T

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,