Skip to main content
Log in

Mojo trait

KVCollectionT

Implemented traits

AnyType, Copyable, Movable, UnknownDestructibility

Methods

__copyinit__

__copyinit__(out self: _Self, existing: _Self, /)

Create a new instance of the value by copying an existing one.

Args:

  • existing (_Self): The value to copy.

__moveinit__

__moveinit__(out self: _Self, owned existing: _Self, /)

Create a new instance of the value by moving the value of another.

Args:

  • existing (_Self): The value to move.

get_key_cache

get_key_cache(self: _Self, layer_idx: Int) -> get_vtable_entry(:trait<_kv_cache::_types::_KVCollectionT> _Self, "CacheType")

get_value_cache

get_value_cache(self: _Self, layer_idx: Int) -> get_vtable_entry(:trait<_kv_cache::_types::_KVCollectionT> _Self, "CacheType")

cache_length

cache_length(self: _Self, bs_idx: Int) -> Int

Was this page helpful?