OptKind
Mojo struct 🡭
OptKind
@memory_only
struct OptKindThe viable types for an option to have.
Aliases
StringLike = OptKind(0)IntLike = OptKind(1)FloatLike = OptKind(2)BoolLike = OptKind(3)__del__is_trivial = UInt8.__del__is_trivial__moveinit__is_trivial = UInt8.__moveinit__is_trivial__copyinit__is_trivial = UInt8.__copyinit__is_trivial
Fields
- value (
UInt8)
Implemented traits
AnyType, Copyable, ImplicitlyCopyable, Movable, Stringable, UnknownDestructibility
Methods
➕ ➖__init__
fn __init__(out self, value: UInt8)
Details
Args:
- value (
UInt8) - 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