[−][src]Struct pagetable::PageTable
A simple lock-free radix tree.
Methods
impl<T> PageTable<T> where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
pub fn swap<'g>(
&self,
pid: PageId,
new: Shared<'g, T>,
guard: &'g Guard
) -> Shared<'g, T>
[src]
&self,
pid: PageId,
new: Shared<'g, T>,
guard: &'g Guard
) -> Shared<'g, T>
Atomically swap the previous value in a tree with a new one.
pub fn cas<'g>(
&self,
pid: PageId,
old: Shared<'g, T>,
new: Shared<'g, T>,
guard: &'g Guard
) -> Result<Shared<'g, T>, Shared<'g, T>>
[src]
&self,
pid: PageId,
old: Shared<'g, T>,
new: Shared<'g, T>,
guard: &'g Guard
) -> Result<Shared<'g, T>, Shared<'g, T>>
Compare and swap an old value to a new one.
pub fn get<'g>(&self, pid: PageId, guard: &'g Guard) -> Option<Shared<'g, T>>
[src]
Try to get a value from the tree.
pub fn del<'g>(&self, pid: PageId, guard: &'g Guard) -> Option<Shared<'g, T>>
[src]
Delete a value from the tree, returning the old value if it was set.
Trait Implementations
impl<T> Default for PageTable<T> where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T> Drop for PageTable<T> where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,