[][src]Struct places::frecency::FrecencyComputation

struct FrecencyComputation<'db, 's> {
    conn: &'db Connection,
    settings: &'s FrecencySettings,
    page_id: i64,
    most_recent_redirect_bonus: RedirectBonus,
    typed: i32,
    visit_count: i32,
    foreign_count: i32,
    is_query: bool,
}

Fields

conn: &'db Connectionsettings: &'s FrecencySettingspage_id: i64most_recent_redirect_bonus: RedirectBonustyped: i32visit_count: i32foreign_count: i32is_query: bool

Implementations

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,