luaur-common 0.1.3

Foundational data structures and flags for the luaur Luau-in-Rust toolchain.
Documentation
impl<T0> crate::records::variant::Variant1<T0> {
    pub fn variant(&mut self) {
        // C++ `Variant()` default-constructs the first alternative.
        // In Rust, this is handled by `Default` impl on the enum, which
        // constructs `Self::V0(T0::default())`. A manual reassignment is
        // unnecessary and duplicates the derive-based behavior.
    }
}

impl<T0, T1> crate::records::variant::Variant2<T0, T1> {
    pub fn variant(&mut self) {
        // C++ `Variant()` default-constructs the first alternative.
        // In Rust, this is handled by `Default` impl on the enum, which
        // constructs `Self::V0(T0::default())`. A manual reassignment is
        // unnecessary and duplicates the derive-based behavior.
    }
}

impl<T0, T1, T2> crate::records::variant::Variant3<T0, T1, T2> {
    pub fn variant(&mut self) {
        // C++ `Variant()` default-constructs the first alternative.
        // In Rust, this is handled by `Default` impl on the enum, which
        // constructs `Self::V0(T0::default())`. A manual reassignment is
        // unnecessary and duplicates the derive-based behavior.
    }
}

impl<T0, T1, T2, T3> crate::records::variant::Variant4<T0, T1, T2, T3> {
    pub fn variant(&mut self) {
        // C++ `Variant()` default-constructs the first alternative.
        // In Rust, this is handled by `Default` impl on the enum, which
        // constructs `Self::V0(T0::default())`. A manual reassignment is
        // unnecessary and duplicates the derive-based behavior.
    }
}

impl<T0, T1, T2, T3, T4> crate::records::variant::Variant5<T0, T1, T2, T3, T4> {
    pub fn variant(&mut self) {
        // C++ `Variant()` default-constructs the first alternative.
        // In Rust, this is handled by `Default` impl on the enum, which
        // constructs `Self::V0(T0::default())`. A manual reassignment is
        // unnecessary and duplicates the derive-based behavior.
    }
}

impl<T0, T1, T2, T3, T4, T5> crate::records::variant::Variant6<T0, T1, T2, T3, T4, T5> {
    pub fn variant(&mut self) {
        // C++ `Variant()` default-constructs the first alternative.
        // In Rust, this is handled by `Default` impl on the enum, which
        // constructs `Self::V0(T0::default())`. A manual reassignment is
        // unnecessary and duplicates the derive-based behavior.
    }
}

impl<T0, T1, T2, T3, T4, T5, T6> crate::records::variant::Variant7<T0, T1, T2, T3, T4, T5, T6> {
    pub fn variant(&mut self) {
        // C++ `Variant()` default-constructs the first alternative.
        // In Rust, this is handled by `Default` impl on the enum, which
        // constructs `Self::V0(T0::default())`. A manual reassignment is
        // unnecessary and duplicates the derive-based behavior.
    }
}