godot::obj

Trait EngineBitfield

pub trait EngineBitfield: Copy {
    // Required methods
    fn try_from_ord(ord: u64) -> Option<Self>;
    fn ord(self) -> u64;

    // Provided methods
    fn from_ord(ord: u64) -> Self { ... }
    fn is_set(self, flag: Self) -> bool { ... }
}
Expand description

Auto-implemented for all engine-provided bitfields.

Required Methods§

fn try_from_ord(ord: u64) -> Option<Self>

fn ord(self) -> u64

Ordinal value of the bit flag, as specified in Godot.

Provided Methods§

fn from_ord(ord: u64) -> Self

fn is_set(self, flag: Self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§