Skip to content

Allow const function calls of various methods #173

@alice-i-cecile

Description

@alice-i-cecile

This is very useful for specifying configuration. For example, in Bevy I'm trying to write:

    pub const PADDLE_STARTING_LOCATION: Transform = Transform::from_xyz(0.0, -215.0, 0.0);
    pub const PADDLE_SIZE: Vec2 = Vec2::new(120.0, 30.0);

but neither of these are const fn's :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions