pub struct BucketLimitRule {
pub limit: usize,
}Expand description
Bucket rule that scores 1.0 as long as given bucket has less items than specified limit.
Fields§
§limit: usizeNumber of items that bucket can have.
Implementations§
Trait Implementations§
Source§impl Clone for BucketLimitRule
impl Clone for BucketLimitRule
Source§fn clone(&self) -> BucketLimitRule
fn clone(&self) -> BucketLimitRule
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BucketLimitRule
impl RefUnwindSafe for BucketLimitRule
impl Send for BucketLimitRule
impl Sync for BucketLimitRule
impl Unpin for BucketLimitRule
impl UnwindSafe for BucketLimitRule
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