Struct MethodFlags
pub struct MethodFlags { /* private fields */ }Implementations§
§impl MethodFlags
impl MethodFlags
pub const NORMAL: MethodFlags
pub const NORMAL: MethodFlags
Godot enumerator name: METHOD_FLAG_NORMAL
pub const EDITOR: MethodFlags
pub const EDITOR: MethodFlags
Godot enumerator name: METHOD_FLAG_EDITOR
pub const CONST: MethodFlags
pub const CONST: MethodFlags
Godot enumerator name: METHOD_FLAG_CONST
pub const VIRTUAL: MethodFlags
pub const VIRTUAL: MethodFlags
Godot enumerator name: METHOD_FLAG_VIRTUAL
pub const VARARG: MethodFlags
pub const VARARG: MethodFlags
Godot enumerator name: METHOD_FLAG_VARARG
pub const STATIC: MethodFlags
pub const STATIC: MethodFlags
Godot enumerator name: METHOD_FLAG_STATIC
pub const OBJECT_CORE: MethodFlags
pub const OBJECT_CORE: MethodFlags
Godot enumerator name: METHOD_FLAG_OBJECT_CORE
pub const VIRTUAL_REQUIRED: MethodFlags
pub const VIRTUAL_REQUIRED: MethodFlags
Godot enumerator name: METHOD_FLAG_VIRTUAL_REQUIRED
pub const DEFAULT: MethodFlags
pub const DEFAULT: MethodFlags
Godot enumerator name: METHOD_FLAGS_DEFAULT
Trait Implementations§
§impl BitOr for MethodFlags
impl BitOr for MethodFlags
§type Output = MethodFlags
type Output = MethodFlags
The resulting type after applying the
| operator.§fn bitor(self, rhs: MethodFlags) -> <MethodFlags as BitOr>::Output
fn bitor(self, rhs: MethodFlags) -> <MethodFlags as BitOr>::Output
Performs the
| operation. Read more§impl BitOrAssign for MethodFlags
impl BitOrAssign for MethodFlags
§fn bitor_assign(&mut self, rhs: MethodFlags)
fn bitor_assign(&mut self, rhs: MethodFlags)
Performs the
|= operation. Read more§impl Clone for MethodFlags
impl Clone for MethodFlags
§fn clone(&self) -> MethodFlags
fn clone(&self) -> MethodFlags
Returns a duplicate 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 MethodFlags
impl Debug for MethodFlags
§impl Default for MethodFlags
impl Default for MethodFlags
§fn default() -> MethodFlags
fn default() -> MethodFlags
Returns the “default value” for a type. Read more
§impl EngineBitfield for MethodFlags
impl EngineBitfield for MethodFlags
fn try_from_ord(ord: u64) -> Option<MethodFlags>
§fn all_constants() -> &'static [EnumConstant<MethodFlags>]
fn all_constants() -> &'static [EnumConstant<MethodFlags>]
Returns metadata for all bitfield constants. Read more
fn from_ord(ord: u64) -> Self
fn is_set(self, flag: Self) -> bool
§impl Export for MethodFlags
impl Export for MethodFlags
§fn export_hint() -> PropertyHintInfo
fn export_hint() -> PropertyHintInfo
The export info to use for an exported field of this type, if no other export info is specified.
§impl FromGodot for MethodFlags
impl FromGodot for MethodFlags
§fn try_from_godot(
via: <MethodFlags as GodotConvert>::Via,
) -> Result<MethodFlags, ConvertError>
fn try_from_godot( via: <MethodFlags as GodotConvert>::Via, ) -> Result<MethodFlags, ConvertError>
Converts the Godot representation to this type, returning
Err on failure.§fn from_godot(via: Self::Via) -> Self
fn from_godot(via: Self::Via) -> Self
⚠️ Converts the Godot representation to this type. Read more
§fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
Performs the conversion from a
Variant, returning Err on failure.§fn from_variant(variant: &Variant) -> Self
fn from_variant(variant: &Variant) -> Self
§impl GodotConvert for MethodFlags
impl GodotConvert for MethodFlags
§impl Hash for MethodFlags
impl Hash for MethodFlags
§impl PartialEq for MethodFlags
impl PartialEq for MethodFlags
§impl ToGodot for MethodFlags
impl ToGodot for MethodFlags
§fn to_godot(&self) -> <MethodFlags as GodotConvert>::Via
fn to_godot(&self) -> <MethodFlags as GodotConvert>::Via
Converts this type to Godot representation, optimizing for zero-copy when possible. Read more
§fn to_godot_owned(&self) -> Self::Via
fn to_godot_owned(&self) -> Self::Via
Converts this type to owned Godot representation. Read more
§fn to_variant(&self) -> Variant
fn to_variant(&self) -> Variant
Converts this type to a Variant.
§impl Var for MethodFlags
impl Var for MethodFlags
§type PubType = MethodFlags
type PubType = MethodFlags
Type used in generated Rust getters/setters for
#[var(pub)].§fn var_get(field: &MethodFlags) -> <MethodFlags as GodotConvert>::Via
fn var_get(field: &MethodFlags) -> <MethodFlags as GodotConvert>::Via
Get property value. Called when reading a property from Godot.
§fn var_set(field: &mut MethodFlags, value: <MethodFlags as GodotConvert>::Via)
fn var_set(field: &mut MethodFlags, value: <MethodFlags as GodotConvert>::Via)
Set property value. Called when writing a property from Godot.
§fn var_pub_get(field: &MethodFlags) -> <MethodFlags as Var>::PubType
fn var_pub_get(field: &MethodFlags) -> <MethodFlags as Var>::PubType
Get property value in a Rust auto-generated getter, for fields annotated with
#[var(pub)].§fn var_pub_set(field: &mut MethodFlags, value: <MethodFlags as Var>::PubType)
fn var_pub_set(field: &mut MethodFlags, value: <MethodFlags as Var>::PubType)
Set property value in a Rust auto-generated setter, for fields annotated with
#[var(pub)].§fn var_hint() -> PropertyHintInfo
fn var_hint() -> PropertyHintInfo
Specific property hints. Only override if they deviate from
GodotType::property_info, e.g. for enums/newtypes.impl Copy for MethodFlags
impl Eq for MethodFlags
impl StructuralPartialEq for MethodFlags
Auto Trait Implementations§
impl Freeze for MethodFlags
impl RefUnwindSafe for MethodFlags
impl Send for MethodFlags
impl Sync for MethodFlags
impl Unpin for MethodFlags
impl UnwindSafe for MethodFlags
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