pub struct LineInfo { /* private fields */ }Expand description
Parsed information about a line, ready to be searched by a SearchBase.
Implementations§
Source§impl LineInfo
impl LineInfo
Sourcepub fn new<T: Into<String>>(item: T, factor: f32) -> LineInfo
pub 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.
Sourcepub fn set_factor(&mut self, factor: f32)
pub fn set_factor(&mut self, factor: f32)
Sets the factor for the line info
Changes the factor after the creation of the line
Sourcepub fn get_factor(&self) -> f32
pub fn get_factor(&self) -> f32
Gets the factor for the line info
Produces the factor for the line info
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineInfo
impl RefUnwindSafe for LineInfo
impl Send for LineInfo
impl Sync for LineInfo
impl Unpin for LineInfo
impl UnwindSafe for LineInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more