Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FractalFir/memory_pages
/ functions
Functions
88 in github.com/FractalFir/memory_pages
⨍
Functions
88
◇
Types & classes
15
↓ 9 callers
Method
capacity
(&self)
src/paged_vec.rs:239
↓ 8 callers
Method
into_prot
( self, )
src/lib.rs:362
↓ 8 callers
Method
push
Pushes `t` into `self` and reallocates if over capacity. Generally unadvised, because reallocation's of [`PagedVec`]-s are very slow. Setting sufficie
src/paged_vec.rs:212
↓ 4 callers
Function
errno_msg
()
src/lib.rs:202
↓ 4 callers
Method
get_fn
(&self, offset: usize)
src/lib.rs:687
↓ 4 callers
Method
resize
(&mut self, next_cap: usize)
src/paged_vec.rs:101
↓ 3 callers
Method
clear
Clears the vector, removing all values. # Examples ``` # use memory_pages::*; let mut vec = PagedVec::new(0x1000); vec.push(8); let cap = vec.capacity
src/paged_vec.rs:282
↓ 2 callers
Method
call
(&self, _args: ())
src/fn_ref.rs:49
↓ 2 callers
Method
drop_all
(&mut self)
src/paged_vec.rs:293
↓ 2 callers
Function
erno
()
src/lib.rs:178
↓ 2 callers
Method
get_ptr_mut
Gets a pointer to data inside page at `offset`. # Safety This pointer may be only written into, and while reading data from it may work on some system
src/lib.rs:611
↓ 2 callers
Function
next_page_boundary
(size: usize)
src/lib.rs:43
↓ 2 callers
Function
prep
()
benches/alloc_cmp.rs:115
↓ 2 callers
Method
push_within_capacity
(&mut self, t: T)
src/paged_vec.rs:61
↓ 1 callers
Method
advise_use_rnd
Advises this [`Pages`] that it is going to be accessed randomly. # Beware Usage hints are part of fine-grain memory access adjustments. It is *NOT* al
src/lib.rs:284
↓ 1 callers
Method
allow_exec
()
src/lib.rs:154
↓ 1 callers
Method
allow_read
()
src/lib.rs:103
↓ 1 callers
Method
allow_write
()
src/lib.rs:125
↓ 1 callers
Method
decommit
Releases physical memory pages behind the region starting at page `beginning` is in, and continuing till page `beginning + length` is in. Those pages
src/lib.rs:387
↓ 1 callers
Method
deny_write
(self)
src/lib.rs:564
↓ 1 callers
Method
get_fn_ptr
(&self, offset: usize)
src/lib.rs:648
↓ 1 callers
Method
get_ptr
(&self, offset: usize)
src/lib.rs:603
↓ 1 callers
Method
set_prot
(&mut self)
src/lib.rs:339
Method
advise_use_rnd
Advises this [`PagedVec`] that it is going to be accessed randomly. # Beware Usage hints are part of fine-grain memory access adjustments. It is *NOT*
src/paged_vec.rs:94
Method
advise_use_seq
Advises this [`Pages`] that it is going to be accessed sequentially. # Beware Usage hints are part of fine-grain memory access adjustments. It is *NOT
src/lib.rs:273
Method
advise_use_seq
Advises this [`PagedVec`] that it is going to be accessed sequentially. # Beware Usage hints are part of fine-grain memory access adjustments. It is *
src/paged_vec.rs:87
Method
advise_use_soon
Advises this [`Pages`] that `used` bytes are going to be in use soon. # Beware Usage hints are part of fine-grain memory access adjustments. It is *NO
src/lib.rs:261
Method
advise_use_soon
Advises this [`PagedVec`] that `used` elements are going to be in use soon. # Beware Usage hints are part of fine-grain memory access adjustments. It
src/paged_vec.rs:77
Method
allow_write_no_exec
Sets the [`AllowWrite`], while ensuring that the [`DenyExec`] is set, to prevent potential mistakes. Preferred over [`Self::allow_write`] if dealing w
src/lib.rs:570
Method
bitmask
()
src/lib.rs:100
Method
borrow
(&self)
src/lib.rs:462
Method
borrow
(&self)
src/paged_vec.rs:320
Method
borrow_mut
(&mut self)
src/lib.rs:478
Method
borrow_mut
(&mut self)
src/paged_vec.rs:325
Method
clear_decommit
Works exacly the same as [`Self::clear`] but hints the OS that some of the memory occupied by data inside this [`PagedVec`] is going to be unused, all
src/paged_vec.rs:289
Method
clone
(&self)
src/paged_vec.rs:380
Method
deny_exec
(self)
src/lib.rs:594
Method
deny_read
(self)
src/lib.rs:495
Method
deref
(&self)
src/lib.rs:468
Method
deref
(&self)
src/paged_vec.rs:310
Method
deref_mut
(&mut self)
src/lib.rs:473
Method
deref_mut
(&mut self)
src/paged_vec.rs:315
Method
drop
(&mut self)
src/lib.rs:700
Method
drop
(&mut self)
src/paged_vec.rs:304
Method
eq
(&self, other: &[T])
src/paged_vec.rs:365
Method
flProtect
()
src/lib.rs:212
Method
fmt
(&self, f: &mut Formatter<'_>)
src/paged_vec.rs:360
Method
get_next_cap
(cap: usize)
src/paged_vec.rs:97
Method
index
(&self, index: usize)
src/lib.rs:456
Method
index_mut
(&mut self, index: usize)
src/lib.rs:483
Method
internal_fn
Returns the internal function. # Safety It is up to the user to ensure [`Pages`] returned function resides in lives long enough. # Examples ``` # use
src/fn_ref.rs:36
Method
into_iter
(self)
src/paged_vec.rs:391
Method
new
(src: f64)
benches/alloc_cmp.rs:8
Method
new
( fnc: F, _page: &'a Pages<R, W, AllowExec>, )
src/fn_ref.rs:10
Method
new
(length: usize)
src/lib.rs:254
Method
new
Creates a new [`PagedVec`] with specified `capacity`. # Examples ``` # use memory_pages::*; // capacity must be specified! let mut vec = PagedVec::new
src/paged_vec.rs:35
Method
new_native
(length: usize)
src/lib.rs:292
Function
page_alloc
(bench: &mut Criterion)
benches/alloc_cmp.rs:24
Method
pop
Pops the last element from `self` ``` # use memory_pages::*; let mut vec = PagedVec::new(0x1000); vec.push(0); vec.push(1); vec.push(2); vec.push(3);
src/paged_vec.rs:256
Function
push_10m_f64_pv
(bench: &mut Criterion)
benches/alloc_cmp.rs:52
Function
push_10m_f64_v
(bench: &mut Criterion)
benches/alloc_cmp.rs:70
Function
push_test_type_pv
(bench: &mut Criterion)
benches/alloc_cmp.rs:87
Function
push_test_type_v
(bench: &mut Criterion)
benches/alloc_cmp.rs:100
Function
random_rw_pv
(bench: &mut Criterion)
benches/alloc_cmp.rs:113
Function
random_rw_v
(bench: &mut Criterion)
benches/alloc_cmp.rs:134
Method
remove
Removes and returns the element at position `index` within the vector, shifting all elements after it to the left. Note: Because this shifts over the
src/paged_vec.rs:182
Method
reserve
Reserves capacity for at least additional more elements to be inserted in the given [`PagedVec<T>`]. The collection may reserve more space to speculat
src/paged_vec.rs:128
Method
reserve_exact
Reserves the minimum capacity for at least additional more elements to be inserted in the given [`PagedVec<T>`]. Unlike reserve, this will not deliber
src/paged_vec.rs:154
Method
resize
Changes the size of this [`Pages`] # Waring ## Pointer invalidation Rust mutable borrow rules prevent this from happening in safe code. This section o
src/lib.rs:429
Method
set_protected_exec
(self)
src/lib.rs:588
Function
small_page_alloc
(bench: &mut Criterion)
benches/alloc_cmp.rs:43
Function
small_system_alloc
(bench: &mut Criterion)
benches/alloc_cmp.rs:33
Function
system_alloc
(bench: &mut Criterion)
benches/alloc_cmp.rs:14
Function
test_acces_r
()
src/lib.rs:756
Function
test_acces_rw
()
src/lib.rs:746
Function
test_alloc_e
()
src/lib.rs:737
Function
test_alloc_r
()
src/lib.rs:732
Function
test_alloc_re
()
src/lib.rs:742
Function
test_alloc_rw
()
src/lib.rs:728
Function
test_alloc_rwe
()
src/lib.rs:724
Function
test_allow_exec
()
src/lib.rs:810
Function
test_allow_read
()
src/lib.rs:795
Function
test_allow_write
()
src/lib.rs:801
Function
test_exec
()
src/lib.rs:765
Function
test_page_vec
()
src/paged_vec.rs:333
Function
test_page_vec_drop
()
src/paged_vec.rs:349
Function
test_page_vec_push
()
src/paged_vec.rs:341
Method
with_capacity
An alias for [`Self::new`] provided for compatibility purposes.
src/paged_vec.rs:45