Table of Contents

Mojo struct

KDTreeResultVector

@memory_only
struct KDTreeResultVector

Aliases

  • __del__is_trivial = False
  • __moveinit__is_trivial = True
  • __copyinit__is_trivial = False

Implemented traits

AnyType, Copyable, ImplicitlyDestructible, Movable, Sized

Methods

__init__

fn __init__(out self)

Args:

  • self (Self)

Returns:

Self

__getitem__

fn __getitem__(self, index: Int) -> KDTreeResult

Args:

  • self (Self)
  • index (Int)

Returns:

KDTreeResult

__setitem__

fn __setitem__(mut self, index: Int, val: KDTreeResult)

Args:

  • self (Self)
  • index (Int)
  • val (KDTreeResult)

__len__

fn __len__(self) -> Int

Args:

  • self (Self)

Returns:

Int

append_heap

fn append_heap(mut self)

Args:

  • self (Self)

append_element_and_heapify

fn append_element_and_heapify(mut self, e: KDTreeResult)

Args:

  • self (Self)
  • e (KDTreeResult)

pop_heap

fn pop_heap(mut self)

Args:

  • self (Self)

max_value

fn max_value(self) -> Float32

Args:

  • self (Self)

Returns:

Float32

replace_maxpri_elt_return_new_maxpri

fn replace_maxpri_elt_return_new_maxpri(mut self, e: KDTreeResult) -> Float32

Args:

  • self (Self)
  • e (KDTreeResult)

Returns:

Float32