[][src]Struct zxcvbn::matching::patterns::SpatialPatternBuilder

pub struct SpatialPatternBuilder { /* fields omitted */ }

Builder for SpatialPattern.

Methods

impl SpatialPatternBuilder[src]

pub fn graph(&mut self, value: String) -> &mut Self[src]

Name of the graph for which a spatial match has been found.

pub fn turns(&mut self, value: usize) -> &mut Self[src]

Number of turns in the matched spatial pattern.

pub fn shifted_count(&mut self, value: usize) -> &mut Self[src]

Number of shifts in the matched spatial pattern.

pub fn build(&self) -> Result<SpatialPattern, String>[src]

Builds a new SpatialPattern.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for SpatialPatternBuilder[src]

impl Default for SpatialPatternBuilder[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> 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<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]