MCPcopy Create free account

hub / github.com/FractalFir/memory_pages / functions

Functions88 in github.com/FractalFir/memory_pages

↓ 9 callersMethodcapacity
(&self)
src/paged_vec.rs:239
↓ 8 callersMethodinto_prot
( self, )
src/lib.rs:362
↓ 8 callersMethodpush
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 callersFunctionerrno_msg
()
src/lib.rs:202
↓ 4 callersMethodget_fn
(&self, offset: usize)
src/lib.rs:687
↓ 4 callersMethodresize
(&mut self, next_cap: usize)
src/paged_vec.rs:101
↓ 3 callersMethodclear
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 callersMethodcall
(&self, _args: ())
src/fn_ref.rs:49
↓ 2 callersMethoddrop_all
(&mut self)
src/paged_vec.rs:293
↓ 2 callersFunctionerno
()
src/lib.rs:178
↓ 2 callersMethodget_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 callersFunctionnext_page_boundary
(size: usize)
src/lib.rs:43
↓ 2 callersFunctionprep
()
benches/alloc_cmp.rs:115
↓ 2 callersMethodpush_within_capacity
(&mut self, t: T)
src/paged_vec.rs:61
↓ 1 callersMethodadvise_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 callersMethodallow_exec
()
src/lib.rs:154
↓ 1 callersMethodallow_read
()
src/lib.rs:103
↓ 1 callersMethodallow_write
()
src/lib.rs:125
↓ 1 callersMethoddecommit
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 callersMethoddeny_write
(self)
src/lib.rs:564
↓ 1 callersMethodget_fn_ptr
(&self, offset: usize)
src/lib.rs:648
↓ 1 callersMethodget_ptr
(&self, offset: usize)
src/lib.rs:603
↓ 1 callersMethodset_prot
(&mut self)
src/lib.rs:339
Methodadvise_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
Methodadvise_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
Methodadvise_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
Methodadvise_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
Methodadvise_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
Methodallow_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
Methodbitmask
()
src/lib.rs:100
Methodborrow
(&self)
src/lib.rs:462
Methodborrow
(&self)
src/paged_vec.rs:320
Methodborrow_mut
(&mut self)
src/lib.rs:478
Methodborrow_mut
(&mut self)
src/paged_vec.rs:325
Methodclear_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
Methodclone
(&self)
src/paged_vec.rs:380
Methoddeny_exec
(self)
src/lib.rs:594
Methoddeny_read
(self)
src/lib.rs:495
Methodderef
(&self)
src/lib.rs:468
Methodderef
(&self)
src/paged_vec.rs:310
Methodderef_mut
(&mut self)
src/lib.rs:473
Methodderef_mut
(&mut self)
src/paged_vec.rs:315
Methoddrop
(&mut self)
src/lib.rs:700
Methoddrop
(&mut self)
src/paged_vec.rs:304
Methodeq
(&self, other: &[T])
src/paged_vec.rs:365
MethodflProtect
()
src/lib.rs:212
Methodfmt
(&self, f: &mut Formatter<'_>)
src/paged_vec.rs:360
Methodget_next_cap
(cap: usize)
src/paged_vec.rs:97
Methodindex
(&self, index: usize)
src/lib.rs:456
Methodindex_mut
(&mut self, index: usize)
src/lib.rs:483
Methodinternal_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
Methodinto_iter
(self)
src/paged_vec.rs:391
Methodnew
(src: f64)
benches/alloc_cmp.rs:8
Methodnew
( fnc: F, _page: &'a Pages<R, W, AllowExec>, )
src/fn_ref.rs:10
Methodnew
(length: usize)
src/lib.rs:254
Methodnew
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
Methodnew_native
(length: usize)
src/lib.rs:292
Functionpage_alloc
(bench: &mut Criterion)
benches/alloc_cmp.rs:24
Methodpop
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
Functionpush_10m_f64_pv
(bench: &mut Criterion)
benches/alloc_cmp.rs:52
Functionpush_10m_f64_v
(bench: &mut Criterion)
benches/alloc_cmp.rs:70
Functionpush_test_type_pv
(bench: &mut Criterion)
benches/alloc_cmp.rs:87
Functionpush_test_type_v
(bench: &mut Criterion)
benches/alloc_cmp.rs:100
Functionrandom_rw_pv
(bench: &mut Criterion)
benches/alloc_cmp.rs:113
Functionrandom_rw_v
(bench: &mut Criterion)
benches/alloc_cmp.rs:134
Methodremove
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
Methodreserve
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
Methodreserve_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
Methodresize
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
Methodset_protected_exec
(self)
src/lib.rs:588
Functionsmall_page_alloc
(bench: &mut Criterion)
benches/alloc_cmp.rs:43
Functionsmall_system_alloc
(bench: &mut Criterion)
benches/alloc_cmp.rs:33
Functionsystem_alloc
(bench: &mut Criterion)
benches/alloc_cmp.rs:14
Functiontest_acces_r
()
src/lib.rs:756
Functiontest_acces_rw
()
src/lib.rs:746
Functiontest_alloc_e
()
src/lib.rs:737
Functiontest_alloc_r
()
src/lib.rs:732
Functiontest_alloc_re
()
src/lib.rs:742
Functiontest_alloc_rw
()
src/lib.rs:728
Functiontest_alloc_rwe
()
src/lib.rs:724
Functiontest_allow_exec
()
src/lib.rs:810
Functiontest_allow_read
()
src/lib.rs:795
Functiontest_allow_write
()
src/lib.rs:801
Functiontest_exec
()
src/lib.rs:765
Functiontest_page_vec
()
src/paged_vec.rs:333
Functiontest_page_vec_drop
()
src/paged_vec.rs:349
Functiontest_page_vec_push
()
src/paged_vec.rs:341
Methodwith_capacity
An alias for [`Self::new`] provided for compatibility purposes.
src/paged_vec.rs:45