Struct rd_util::anon_area::AnonArea[][src]

pub struct AnonArea { /* fields omitted */ }

Implementations

Anonymous memory which can be shared by multiple threads with RwLock protection. Accesses to memory positions only require read locking for both reads and writes.

Determine the page given the relative position rel and size of the anon area. rel is in the range [-1.0, 1.0] with the position 0.0 mapping to the first page, positive positions to even slots and negative odd so that modulating the amplitude of rel changes how much area is accessed without shifting the center.

Return a mutable u8 reference to the position specified by the page index. The anon area is shared and there’s no access control.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.