Struct flx::LineInfo
[−]
[src]
pub struct LineInfo { /* fields omitted */ }
Parsed information about a line, ready to be searched by a SearchBase.
Methods
impl LineInfo
[src]
fn new<T: Into<String>>(item: T, factor: f32) -> LineInfo
Constructs a new LineInfo objects from the given item.
Factor is a "tie-breaker," or something to weight the matches in a way beyond the matching already done in flx. The greater the factor, the more greatly matching favors the item.
fn set_factor(&mut self, factor: f32)
Sets the factor for the line info
Changes the factor after the creation of the line
fn get_factor(&self) -> f32
Gets the factor for the line info
Produces the factor for the line info
Trait Implementations
impl Debug for LineInfo
[src]
impl<T: Into<String>> From<T> for LineInfo
[src]
Creates a LineInfo object with a factor of zero