[−][src]Struct wordfeud_solver::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]
Auto Trait Implementations
impl RefUnwindSafe for Tile
impl Send for Tile
impl Sync for Tile
impl Unpin for Tile
impl UnwindSafe for Tile
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,