pub open spec fn count_present_upto<E: PageTableEntryTrait>(s: Seq<E>, n: int) -> intExpand description
{
if n <= 0 {
0
} else {
count_present_upto(s, n - 1) + if s[n - 1].is_present() { 1int } else { 0int }
}
}Number of present PTEs among the first n entries of s.