Skip to main content

Mojo struct

DriverVersion

struct DriverVersion

Implemented traits

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, Writable

Methods

__init__

__init__(out self, var value: List[String])

__init__(out self, *, copy: Self)

major

major(self) -> Int

Returns:

Int

minor

minor(self) -> Int

Returns:

Int

patch

patch(self) -> Int

Returns:

Int

write_to

write_to(self, mut writer: T)

Writes the driver version string.

Args:

  • writer (T): The writer to write to.

Was this page helpful?