Enum EditorSettingsNotification
#[repr(i32)]pub enum EditorSettingsNotification {
EDITOR_SETTINGS_CHANGED = 10_000,
POSTINITIALIZE = 0,
PREDELETE = 1,
EXTENSION_RELOADED = 2,
Unknown(i32),
}
Expand description
Notification type for class EditorSettings
.
Makes it easier to keep an overview all possible notification variants for a given class, including notifications defined in base classes.
Contains the Unknown
variant for forward compatibility.
Variants§
EDITOR_SETTINGS_CHANGED = 10_000
POSTINITIALIZE = 0
PREDELETE = 1
EXTENSION_RELOADED = 2
Unknown(i32)
Since Godot represents notifications as integers, it’s always possible that a notification outside the known types
is received. For example, the user can manually issue notifications through Object::notify()
.
This is also necessary if you develop an extension on a Godot version and want to be forward-compatible with newer versions. If Godot adds new notifications, they will be unknown to your extension, but you can still handle them.
Trait Implementations§
§impl Clone for EditorSettingsNotification
impl Clone for EditorSettingsNotification
§fn clone(&self) -> EditorSettingsNotification
fn clone(&self) -> EditorSettingsNotification
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for EditorSettingsNotification
impl Debug for EditorSettingsNotification
§impl From<i32> for EditorSettingsNotification
impl From<i32> for EditorSettingsNotification
§fn from(enumerator: i32) -> EditorSettingsNotification
fn from(enumerator: i32) -> EditorSettingsNotification
Always succeeds, mapping unknown integers to the Unknown
variant.
§impl Hash for EditorSettingsNotification
impl Hash for EditorSettingsNotification
§impl Ord for EditorSettingsNotification
impl Ord for EditorSettingsNotification
§fn cmp(&self, other: &EditorSettingsNotification) -> Ordering
fn cmp(&self, other: &EditorSettingsNotification) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for EditorSettingsNotification
impl PartialEq for EditorSettingsNotification
§impl PartialOrd for EditorSettingsNotification
impl PartialOrd for EditorSettingsNotification
impl Copy for EditorSettingsNotification
impl Eq for EditorSettingsNotification
impl StructuralPartialEq for EditorSettingsNotification
Auto Trait Implementations§
impl Freeze for EditorSettingsNotification
impl RefUnwindSafe for EditorSettingsNotification
impl Send for EditorSettingsNotification
impl Sync for EditorSettingsNotification
impl Unpin for EditorSettingsNotification
impl UnwindSafe for EditorSettingsNotification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)