[][src]Struct nonogrid::parser::MyFormat

pub struct MyFormat { /* fields omitted */ }

Methods

impl MyFormat[src]

pub fn parse_color_def(color_def: &str) -> (String, char, String)[src]

use nonogrid::parser::MyFormat;

let s = "b = (blue) *";
let colors = MyFormat::parse_color_def(s);
assert_eq!(colors, ("b".to_string(), '*', "blue".to_string()));

Trait Implementations

impl BoardParser for MyFormat[src]

impl LocalReader for MyFormat[src]

fn read_local(file_name: &str) -> Result<Self, String> where
    Self: Sized
[src]

fn file_content(file_name: &str) -> Result<String, String>[src]

impl Paletted for MyFormat[src]

Auto Trait Implementations

impl Send for MyFormat

impl Sync for MyFormat

Blanket Implementations

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.

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

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

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