[−][src]Struct nonogrid::parser::MyFormat
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]
fn with_content(content: String) -> Result<Self, String> where
Self: Sized,
[src]
Self: Sized,
fn parse<B>(&self) -> Board<B> where
B: Block,
[src]
B: Block,
fn infer_scheme(&self) -> PuzzleScheme
[src]
impl LocalReader for MyFormat
[src]
fn read_local(file_name: &str) -> Result<Self, String> where
Self: Sized,
[src]
Self: Sized,
fn file_content(file_name: &str) -> Result<String, String>
[src]
impl Paletted for MyFormat
[src]
fn get_colors(&self) -> Vec<(String, char, String)>
[src]
fn get_palette(&self) -> ColorPalette
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,