Struct scout::Choice [] [src]

pub struct Choice { /* fields omitted */ }

A choice represents an element in the list that matches against the current user's query.

It has the original text, the score (how good is the match) and where the match starts and ends.

Methods

impl Choice
[src]

[src]

Build a new Choice.

[src]

The character index where the matching starts

The character under this index is included in the match.

[src]

The character index where the matching ends

The character under this index is NOT included in the match. It's an open ending.

Trait Implementations

impl Clone for Choice
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Choice
[src]

[src]

Formats the value using the given formatter.

impl Default for Choice
[src]

[src]

Returns the "default value" for a type. Read more

impl PartialEq for Choice
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Choice
[src]

impl Ord for Choice
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for Choice
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Display for Choice
[src]

[src]

Formats the value using the given formatter. Read more

impl From<(String, usize, usize)> for Choice
[src]

[src]

Performs the conversion.

impl From<String> for Choice
[src]

[src]

Performs the conversion.