Trait EngineEnum
pub trait EngineEnum: Copy {
// Required methods
fn try_from_ord(ord: i32) -> Option<Self>;
fn ord(self) -> i32;
fn as_str(&self) -> &'static str;
fn godot_name(&self) -> &'static str;
// Provided method
fn from_ord(ord: i32) -> Self { ... }
}
Expand description
Auto-implemented for all engine-provided enums.
Required Methods§
fn try_from_ord(ord: i32) -> Option<Self>
fn ord(self) -> i32
fn ord(self) -> i32
Ordinal value of the enumerator, as specified in Godot. This is not necessarily unique.
fn as_str(&self) -> &'static str
fn godot_name(&self) -> &'static str
Provided Methods§
Object Safety§
This trait is not object safe.