cli
OptKind

OptKind

Mojo struct 🡭

OptKind

@memory_only
struct OptKind

The viable types for an option to have.

Aliases

  • StringLike = OptKind(0)
  • IntLike = OptKind(1)
  • FloatLike = OptKind(2)
  • BoolLike = OptKind(3)

Fields

  • value (SIMD[uint8, 1])

Implemented traits

AnyType, Copyable, ExplicitlyCopyable, Movable, Stringable, UnknownDestructibility

Methods

 

__init__

fn __init__(out self, value: SIMD[uint8, 1])

Details Args:

  • value (SIMD)
  • self (Self)

Returns:

Self

__eq__

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

Details Args:

  • self (Self)
  • other (Self)

Returns:

Bool

__ne__

fn __ne__(self, other: Self) -> Bool

Details Args:

  • self (Self)
  • other (Self)

Returns:

Bool

__str__

fn __str__(self) -> String

Details Args:

  • self (Self)

Returns:

String