Struct gdnative::PropertyUsage
[−]
pub struct PropertyUsage { /* fields omitted */ }
Methods
impl PropertyUsage
pub const STORAGE: PropertyUsage
STORAGE: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_STORAGE as u32,}
pub const EDITOR: PropertyUsage
EDITOR: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_EDITOR as u32,}
pub const NETWORK: PropertyUsage
NETWORK: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_NETWORK as u32,}
pub const EDITOR_HELPER: PropertyUsage
EDITOR_HELPER: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_EDITOR_HELPER as u32,}
pub const CHECKABLE: PropertyUsage
CHECKABLE: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_CHECKABLE as u32,}
pub const CHECKED: PropertyUsage
CHECKED: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_CHECKED as u32,}
pub const INTERNATIONALIZED: PropertyUsage
INTERNATIONALIZED: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_INTERNATIONALIZED as u32,}
pub const GROUP: PropertyUsage
GROUP: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_GROUP as u32,}
pub const CATEGORY: PropertyUsage
CATEGORY: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_CATEGORY as u32,}
pub const STORE_IF_NONZERO: PropertyUsage
STORE_IF_NONZERO: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_STORE_IF_NONZERO as u32,}
pub const STORE_IF_NONONE: PropertyUsage
STORE_IF_NONONE: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_STORE_IF_NONONE as u32,}
pub const NO_INSTANCE_STATE: PropertyUsage
NO_INSTANCE_STATE: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_NO_INSTANCE_STATE as u32,}
pub const RESTART_IF_CHANGED: PropertyUsage
RESTART_IF_CHANGED: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_RESTART_IF_CHANGED as u32,}
pub const SCRIPT_VARIABLE: PropertyUsage
SCRIPT_VARIABLE: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_SCRIPT_VARIABLE as u32,}
pub const STORE_IF_NULL: PropertyUsage
STORE_IF_NULL: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_STORE_IF_NULL as u32,}
pub const ANIMATE_AS_TRIGGER: PropertyUsage
ANIMATE_AS_TRIGGER: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_ANIMATE_AS_TRIGGER as u32,}
pub const UPDATE_ALL_IF_MODIFIED: PropertyUsage
UPDATE_ALL_IF_MODIFIED: PropertyUsage = PropertyUsage{bits: GODOT_PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED as u32,}
pub const DEFAULT: PropertyUsage
DEFAULT: PropertyUsage = PropertyUsage{bits: <Self>::STORAGE.bits | <Self>::EDITOR.bits | <Self>::NETWORK.bits,}
pub const DEFAULT_INTL: PropertyUsage
DEFAULT_INTL: PropertyUsage = PropertyUsage{bits: <Self>::DEFAULT.bits | <Self>::INTERNATIONALIZED.bits,}
pub const NOEDITOR: PropertyUsage
NOEDITOR: PropertyUsage = PropertyUsage{bits: <Self>::STORAGE.bits | <Self>::NETWORK.bits,}
pub fn empty() -> PropertyUsage
Returns an empty set of flags.
pub fn all() -> PropertyUsage
Returns the set containing all flags.
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<PropertyUsage>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> PropertyUsage
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: PropertyUsage) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: PropertyUsage) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: PropertyUsage)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: PropertyUsage)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: PropertyUsage)
Toggles the specified flags in-place.
pub fn set(&mut self, other: PropertyUsage, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for PropertyUsage
impl PartialEq for PropertyUsage
fn eq(&self, __arg_0: &PropertyUsage) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PropertyUsage) -> bool
This method tests for !=
.
impl Eq for PropertyUsage
impl Clone for PropertyUsage
fn clone(&self) -> PropertyUsage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd for PropertyUsage
fn partial_cmp(&self, __arg_0: &PropertyUsage) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &PropertyUsage) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &PropertyUsage) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &PropertyUsage) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &PropertyUsage) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for PropertyUsage
fn cmp(&self, __arg_0: &PropertyUsage) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for PropertyUsage
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for PropertyUsage
impl Binary for PropertyUsage
impl Octal for PropertyUsage
impl LowerHex for PropertyUsage
impl UpperHex for PropertyUsage
impl BitOr for PropertyUsage
type Output = PropertyUsage
The resulting type after applying the |
operator.
fn bitor(self, other: PropertyUsage) -> PropertyUsage
Returns the union of the two sets of flags.
impl BitOrAssign for PropertyUsage
fn bitor_assign(&mut self, other: PropertyUsage)
Adds the set of flags.
impl BitXor for PropertyUsage
type Output = PropertyUsage
The resulting type after applying the ^
operator.
fn bitxor(self, other: PropertyUsage) -> PropertyUsage
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for PropertyUsage
fn bitxor_assign(&mut self, other: PropertyUsage)
Toggles the set of flags.
impl BitAnd for PropertyUsage
type Output = PropertyUsage
The resulting type after applying the &
operator.
fn bitand(self, other: PropertyUsage) -> PropertyUsage
Returns the intersection between the two sets of flags.
impl BitAndAssign for PropertyUsage
fn bitand_assign(&mut self, other: PropertyUsage)
Disables all flags disabled in the set.
impl Sub for PropertyUsage
type Output = PropertyUsage
The resulting type after applying the -
operator.
fn sub(self, other: PropertyUsage) -> PropertyUsage
Returns the set difference of the two sets of flags.
impl SubAssign for PropertyUsage
fn sub_assign(&mut self, other: PropertyUsage)
Disables all flags enabled in the set.
impl Not for PropertyUsage
type Output = PropertyUsage
The resulting type after applying the !
operator.
fn not(self) -> PropertyUsage
Returns the complement of this set of flags.
impl Extend<PropertyUsage> for PropertyUsage
fn extend<T: IntoIterator<Item = PropertyUsage>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<PropertyUsage> for PropertyUsage
fn from_iter<T: IntoIterator<Item = PropertyUsage>>(
iterator: T
) -> PropertyUsage
iterator: T
) -> PropertyUsage
Creates a value from an iterator. Read more