pybevy_time 0.2.1

Time resources for PyBevy
Documentation
use pyo3::prelude::*;

#[pyclass(name = "Fixed", frozen)]
#[derive(Debug, Clone, Copy, Default)]
pub struct PyFixed;

#[pymethods]
impl PyFixed {
    #[new]
    pub fn new() -> Self {
        PyFixed
    }

    pub fn __repr__(&self) -> &'static str {
        "Fixed"
    }
}

#[pyclass(name = "Real", frozen)]
#[derive(Debug, Clone, Copy, Default)]
pub struct PyReal;

#[pymethods]
impl PyReal {
    #[new]
    pub fn new() -> Self {
        PyReal
    }

    pub fn __repr__(&self) -> &'static str {
        "Real"
    }
}

#[pyclass(name = "Virtual", frozen)]
#[derive(Debug, Clone, Copy, Default)]
pub struct PyVirtual;

#[pymethods]
impl PyVirtual {
    #[new]
    pub fn new() -> Self {
        PyVirtual
    }

    pub fn __repr__(&self) -> &'static str {
        "Virtual"
    }
}