Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

607 B
Raw Blame
use super::*;

pub(super) fn cursor_direction_cmp(
    direction: CursorDirection,
    candidate: &Key,
    target: &Key,
) -> std::cmp::Ordering {
    moli_indexeddb::compare_cursor_direction(direction, candidate, target)
}

pub(super) fn cursor_tuple_cmp(
    direction: CursorDirection,
    candidate_key: &Key,
    candidate_primary_key: &Key,
    target_key: &Key,
    target_primary_key: &Key,
) -> std::cmp::Ordering {
    moli_indexeddb::compare_cursor_tuple_direction(
        direction,
        candidate_key,
        candidate_primary_key,
        target_key,
        target_primary_key,
    )
}