Skip to main content
Log in

Mojo struct

AccessProperty

@register_passable(trivial) struct AccessProperty

Specifies performance hint with AccessPolicyWindow for hit_prop and miss_prop fields.

Aliases

  • NORMAL = AccessProperty(SIMD(0)): Normal cache persistence.
  • STREAMING = AccessProperty(SIMD(1)): Streaming access is less likely to persit from cache.
  • PERSISTING = AccessProperty(SIMD(2)): Persisting access is more likely to persist in cache.

Implemented traits

AnyType, Copyable, ExplicitlyCopyable, Movable, UnknownDestructibility, Writable

Methods

__init__

__init__(*, other: Self) -> Self

Explicitly construct a deep copy of the provided value.

Args:

  • other (Self): The value to copy.

__eq__

__eq__(self, other: Self) -> Bool

__ne__

__ne__(self, other: Self) -> Bool

__is__

__is__(self, other: Self) -> Bool

__isnot__

__isnot__(self, other: Self) -> Bool

__str__

__str__(self) -> String

write_to

write_to[W: Writer](self, mut writer: W)