[][src]Struct bishop::bishop_art::DrawingOptions

pub struct DrawingOptions {
    pub chars: CharList,
    pub top_text: String,
    pub bottom_text: String,
}

Options for drawing methods

Fields

chars: CharList

Vector of chars used for fingerprint

Each char is treated as:

IndexDescriptionDefault
0Field background
1..nChars used for drawing.o+=*BOX@%&#/^
n+1Char for start positionS
n+2Char for last positionE

Each non-background char indicates how many times bishop has been on this position.

Start and end chars overwrites the real value.

Char list must be at least 4 chars long, but secure char list is at least 18 chars long and only consists of clearly distinguishable symbols.

top_text: String

Text for top frame border

bottom_text: String

Text for bottom frame border

Methods

impl DrawingOptions[src]

pub fn default() -> DrawingOptions[src]

Returns DrawingOptions with default parameters

Trait Implementations

impl Default for DrawingOptions[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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