Skip to content

implement std::ops::Not for StdLib #698

@mokurin000

Description

@mokurin000

Scenario: I want basically ALL_SAFE feature set, but except PACKAGE,

        Lua::new_with(
            StdLib::ALL_SAFE & StdLib(!StdLib::PACKAGE.0),
            LuaOptions::new(),
        )?

This is not allowed because .0 is private

        Lua::new_with(
            StdLib::ALL_SAFE & !StdLib::PACKAGE,
            LuaOptions::new(),
        )?

This is also not allowed due to Not not implemented by StdLib

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions