Skip to content
FillRule

FillRule

Mojo struct 🡭

FillRule

@memory_only
struct FillRule

Aliases

  • EVEN_ODD = FillRule(Int(0))
  • NONZERO = FillRule(Int(1))

Implemented traits

AnyType, Copyable, Deinitable, Equatable, ImplicitlyCopyable, Movable, Writable

Methods

__init__

fn def __init__(out self, value: Int)

Prefer the EVEN_ODD/NONZERO comptime constants over constructing one directly.

Args:

  • value (Int): 0 for EVEN_ODD, 1 for NONZERO.
  • self (Self)

Returns:

Self

__eq__

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

Args:

  • self (Self)
  • other (Self)

Returns:

Bool

write_to

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

Parameters:

  • W (Writer)

Args:

  • self (Self)
  • writer (W)

__str__

fn def __str__(self) -> String

Args:

  • self (Self)

Returns:

String