Enum lrs::file::Advice

Advice used to optimize file access.

Syntax

enum Advice {
    DontNeed,
    Need,
    NoReuse,
    Normal,
    Random,
    Sequential,
}

Variants

NameDescription
DontNeed

The range will not be accessed.

Need

The range will be accessed soon.

NoReuse

The range will be accessed only once.

Normal

Default.

Random

Optimize for random access.

Sequential

Optimize for sequential access.

Trait implementations

NameDescription
Clone

Objects that can be duplicated.

Copy

Objects that can safely be copied via memcpy.

Eq

Objects that implement the binary == and != operators.

MaybeClone

Objects that can be duplicated.