[][src]Struct xwords::parse::WordBoundary

pub struct WordBoundary {
    pub start_row: usize,
    pub start_col: usize,
    pub length: usize,
    pub direction: Direction,
}

A representation of a word in a Crossword. Note that a WordBoundary is not attached to a specific Crossword, and that it is mostly used to represent a location in a grid.

Note that a WordBoundary can be combined with a &Crossword to create a WordIterator, which will produce the chars present in that specific Crossword.

Fields

start_row: usizestart_col: usizelength: usizedirection: Direction

Implementations

impl WordBoundary[src]

pub fn new(
    start_row: usize,
    start_col: usize,
    length: usize,
    direction: Direction
) -> WordBoundary
[src]

Trait Implementations

impl Clone for WordBoundary[src]

impl Debug for WordBoundary[src]

impl PartialEq<WordBoundary> for WordBoundary[src]

impl StructuralPartialEq for WordBoundary[src]

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