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

Object Safety§

This trait is not object safe.

Implementors§