Struct legion::storage::PackOptions[][src]

pub struct PackOptions {
    pub stability_threshold: u64,
    pub fragmentation_threshold: f32,
    pub maximum_iteration_size: usize,
}

Describes how to perform a component pack operation.

Fields

stability_threshold: u64

The number of frames that an archetype has to remain stable before it will be considered a candidate for packing.

fragmentation_threshold: f32

The estimated number of cache misses due to fragmentation per entity that would be saved by a repack before a component storage may consider repacking itself.

maximum_iteration_size: usize

The target maximum number of entities to move during a repack before the pack is halted.

Implementations

impl PackOptions[src]

pub fn force() -> Self[src]

Force a repack.

Trait Implementations

impl Clone for PackOptions[src]

impl Copy for PackOptions[src]

impl Debug for PackOptions[src]

impl Default for PackOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.