Struct git_pack::cache::lru::StaticLinkedList[][src]

pub struct StaticLinkedList<const SIZE: usize> { /* fields omitted */ }
Expand description

A cache using a least-recently-used implementation capable of storing the SIZE most recent objects. The cache must be small as the search is ‘naive’ and the underlying data structure is a linked list. Values of 64 seem to improve performance.

Trait Implementations

Store a fully decoded object at offset of kind with compressed_size and data in the cache. Read more

Attempt to fetch the object at offset and store its decoded bytes in out, as previously stored with DecodeEntry::put(), and return its (object kind, decompressed_size) Read more

Returns the “default value” for a type. Read more

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.