pub struct NegativeBoost(/* private fields */);
Expand description
A container type for boost values
Implementations§
Source§impl NegativeBoost
impl NegativeBoost
Sourcepub fn new(boost: f32) -> Self
pub fn new(boost: f32) -> Self
Creates a new instance of a negative boost value
Floating point number between 0
and 1.0
used to decrease the
relevance scores
of documents matching the negative
query.
Trait Implementations§
Source§impl Clone for NegativeBoost
impl Clone for NegativeBoost
Source§fn clone(&self) -> NegativeBoost
fn clone(&self) -> NegativeBoost
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NegativeBoost
impl Debug for NegativeBoost
Source§impl Display for NegativeBoost
impl Display for NegativeBoost
Source§impl From<f32> for NegativeBoost
impl From<f32> for NegativeBoost
Source§impl From<i32> for NegativeBoost
impl From<i32> for NegativeBoost
Source§impl PartialEq<f32> for NegativeBoost
impl PartialEq<f32> for NegativeBoost
Source§impl PartialEq for NegativeBoost
impl PartialEq for NegativeBoost
Source§impl PartialOrd for NegativeBoost
impl PartialOrd for NegativeBoost
Source§impl Serialize for NegativeBoost
impl Serialize for NegativeBoost
impl Copy for NegativeBoost
impl StructuralPartialEq for NegativeBoost
Auto Trait Implementations§
impl Freeze for NegativeBoost
impl RefUnwindSafe for NegativeBoost
impl Send for NegativeBoost
impl Sync for NegativeBoost
impl Unpin for NegativeBoost
impl UnwindSafe for NegativeBoost
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