[][src]Struct wordfeud_solver::Tile

pub struct Tile(_);

A tile on the board, either a regular letter or a wildcard (blank used as letter)

Implementations

impl Tile[src]

pub fn from_letter(letter: Letter) -> Tile[src]

Create Tile from Letter

pub fn into_cell(self) -> Cell[src]

Create Cell from tile

pub fn wildcard_from_letter(code: u8) -> Tile[src]

Return a wildcard tile for letter code.

Example

use wordfeud_solver::{Item,Tile};
let tile = Tile::wildcard_from_letter(1);
assert_eq!(tile.code(), 65);

pub fn is_wildcard(&self) -> bool[src]

Check if the tile is a wildcard

pub fn label(&self) -> Label[src]

Get label for tile, ignoring the wildcard attribute.

Example

use wordfeud_solver::{Item, Tile};
let tile = Tile::wildcard_from_letter(1);
assert_eq!(tile.code(), 65);
assert_eq!(tile.label(), 1);

Trait Implementations

impl Clone for Tile[src]

impl Copy for Tile[src]

impl Debug for Tile[src]

impl Default for Tile[src]

impl Into<u8> for Tile[src]

impl Item for Tile[src]

impl PartialEq<Tile> for Tile[src]

impl StructuralPartialEq for Tile[src]

impl TryFrom<u8> for Tile[src]

type Error = Error

The type returned in the event of a conversion error.

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

type Init = T

The type for initializers.

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

type Owned = T

The resulting type after obtaining ownership.

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>,