IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo struct

RoundMode

struct RoundMode

Specifies how fractional coordinates are rounded to integer indices during nearest-neighbor resize.

Fields

  • value (Int):

Implemented traits

AnyType, Copyable, Deinitable, ImplicitlyCopyable, Movable

comptime members

Ceil

comptime Ceil = RoundMode(Int(3))

Floor

comptime Floor = RoundMode(Int(2))

HalfDown

comptime HalfDown = RoundMode(Int(0))

HalfUp

comptime HalfUp = RoundMode(Int(1))

Methods

__init__

def __init__(out self, value: Int)

__eq__

def __eq__(self, other: Self) -> Bool

Returns:

Bool