[−][src]Struct places::frecency::FrecencyComputation
Fields
conn: &'db Connectionsettings: &'s FrecencySettingspage_id: i64most_recent_redirect_bonus: RedirectBonustyped: i32visit_count: i32foreign_count: i32is_query: boolImplementations
impl<'db, 's> FrecencyComputation<'db, 's>[src]
fn new(
conn: &'db Connection,
settings: &'s FrecencySettings,
page_id: i64,
most_recent_redirect_bonus: RedirectBonus
) -> Result<Self>[src]
conn: &'db Connection,
settings: &'s FrecencySettings,
page_id: i64,
most_recent_redirect_bonus: RedirectBonus
) -> Result<Self>
fn has_bookmark(&self) -> bool[src]
fn score_recent_visits(&self) -> Result<(usize, f32)>[src]
fn get_frecency_for_sample(&self, num_sampled: usize, score: f32) -> i32[src]
fn compute_unvisited_bookmark_frecency(&self) -> i32[src]
Auto Trait Implementations
impl<'db, 's> !RefUnwindSafe for FrecencyComputation<'db, 's>
impl<'db, 's> !Send for FrecencyComputation<'db, 's>
impl<'db, 's> !Sync for FrecencyComputation<'db, 's>
impl<'db, 's> Unpin for FrecencyComputation<'db, 's>
impl<'db, 's> !UnwindSafe for FrecencyComputation<'db, 's>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,