Skip to content

PointShape

Mojo struct 🡭

PointShape

@memory_only
struct PointShape

Aliases

  • CIRCLE = PointShape(Int(0))
  • SQUARE = PointShape(Int(1))
  • TRIANGLE = PointShape(Int(2))
  • DIAMOND = PointShape(Int(3))
  • CROSS = PointShape(Int(4))
  • X = PointShape(Int(5))

Implemented traits

AnyType, Copyable, Deinitable, ImplicitlyCopyable, Movable

Methods

__init__

fn def __init__(out self, value: Int)

Args:

  • value (Int)
  • self (Self)

Returns:

Self

__eq__

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

Args:

  • self (Self)
  • other (Self)

Returns:

Bool