Struct gdnative_visual_script::common::init::PropertyUsage [−]
pub struct PropertyUsage { /* fields omitted */ }
Methods
impl PropertyUsage
impl PropertyUsage
pub fn to_sys(&self) -> godot_property_usage_flags
pub fn to_sys(&self) -> godot_property_usage_flags
impl PropertyUsage
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
pub fn empty() -> PropertyUsage
Returns an empty set of flags.
pub fn all() -> PropertyUsage
pub fn all() -> PropertyUsage
Returns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<PropertyUsage>
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
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
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: PropertyUsage) -> bool
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
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)
pub fn insert(&mut self, other: PropertyUsage)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: PropertyUsage)
pub fn remove(&mut self, other: PropertyUsage)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: PropertyUsage)
pub fn toggle(&mut self, other: PropertyUsage)
Toggles the specified flags in-place.
pub fn set(&mut self, other: PropertyUsage, value: bool)
pub fn set(&mut self, other: PropertyUsage, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl LowerHex for PropertyUsage
impl LowerHex for PropertyUsage
impl BitAnd<PropertyUsage> for PropertyUsage
impl BitAnd<PropertyUsage> for PropertyUsage
type Output = PropertyUsage
The resulting type after applying the &
operator.
fn bitand(self, other: PropertyUsage) -> PropertyUsage
fn bitand(self, other: PropertyUsage) -> PropertyUsage
Returns the intersection between the two sets of flags.
impl PartialOrd<PropertyUsage> for PropertyUsage
impl PartialOrd<PropertyUsage> for PropertyUsage
fn partial_cmp(&self, other: &PropertyUsage) -> Option<Ordering>
fn partial_cmp(&self, other: &PropertyUsage) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &PropertyUsage) -> bool
fn lt(&self, other: &PropertyUsage) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &PropertyUsage) -> bool
fn le(&self, other: &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, other: &PropertyUsage) -> bool
fn gt(&self, other: &PropertyUsage) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &PropertyUsage) -> bool
fn ge(&self, other: &PropertyUsage) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Extend<PropertyUsage> for PropertyUsage
impl Extend<PropertyUsage> for PropertyUsage
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = PropertyUsage>,
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = PropertyUsage>,
Extends a collection with the contents of an iterator. Read more
impl Hash for PropertyUsage
impl Hash for PropertyUsage
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Sub<PropertyUsage> for PropertyUsage
impl Sub<PropertyUsage> for PropertyUsage
type Output = PropertyUsage
The resulting type after applying the -
operator.
fn sub(self, other: PropertyUsage) -> PropertyUsage
fn sub(self, other: PropertyUsage) -> PropertyUsage
Returns the set difference of the two sets of flags.
impl Clone for PropertyUsage
impl Clone for PropertyUsage
fn clone(&self) -> PropertyUsage
fn clone(&self) -> PropertyUsage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for PropertyUsage
impl Debug for PropertyUsage
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Ord for PropertyUsage
impl Ord for PropertyUsage
fn cmp(&self, other: &PropertyUsage) -> Ordering
fn cmp(&self, other: &PropertyUsage) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Binary for PropertyUsage
impl Binary for PropertyUsage
impl Octal for PropertyUsage
impl Octal for PropertyUsage
impl UpperHex for PropertyUsage
impl UpperHex for PropertyUsage
impl BitOr<PropertyUsage> for PropertyUsage
impl BitOr<PropertyUsage> for PropertyUsage
type Output = PropertyUsage
The resulting type after applying the |
operator.
fn bitor(self, other: PropertyUsage) -> PropertyUsage
fn bitor(self, other: PropertyUsage) -> PropertyUsage
Returns the union of the two sets of flags.
impl FromIterator<PropertyUsage> for PropertyUsage
impl FromIterator<PropertyUsage> for PropertyUsage
fn from_iter<T>(iterator: T) -> PropertyUsage where
T: IntoIterator<Item = PropertyUsage>,
fn from_iter<T>(iterator: T) -> PropertyUsage where
T: IntoIterator<Item = PropertyUsage>,
Creates a value from an iterator. Read more
impl SubAssign<PropertyUsage> for PropertyUsage
impl SubAssign<PropertyUsage> for PropertyUsage
fn sub_assign(&mut self, other: PropertyUsage)
fn sub_assign(&mut self, other: PropertyUsage)
Disables all flags enabled in the set.
impl BitXor<PropertyUsage> for PropertyUsage
impl BitXor<PropertyUsage> for PropertyUsage
type Output = PropertyUsage
The resulting type after applying the ^
operator.
fn bitxor(self, other: PropertyUsage) -> PropertyUsage
fn bitxor(self, other: PropertyUsage) -> PropertyUsage
Returns the left flags, but with all the right flags toggled.
impl Copy for PropertyUsage
impl Copy for PropertyUsage
impl BitAndAssign<PropertyUsage> for PropertyUsage
impl BitAndAssign<PropertyUsage> for PropertyUsage
fn bitand_assign(&mut self, other: PropertyUsage)
fn bitand_assign(&mut self, other: PropertyUsage)
Disables all flags disabled in the set.
impl Eq for PropertyUsage
impl Eq for PropertyUsage
impl PartialEq<PropertyUsage> for PropertyUsage
impl PartialEq<PropertyUsage> for PropertyUsage
fn eq(&self, other: &PropertyUsage) -> bool
fn eq(&self, other: &PropertyUsage) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PropertyUsage) -> bool
fn ne(&self, other: &PropertyUsage) -> bool
This method tests for !=
.
impl Not for PropertyUsage
impl Not for PropertyUsage
type Output = PropertyUsage
The resulting type after applying the !
operator.
fn not(self) -> PropertyUsage
fn not(self) -> PropertyUsage
Returns the complement of this set of flags.
impl BitXorAssign<PropertyUsage> for PropertyUsage
impl BitXorAssign<PropertyUsage> for PropertyUsage
fn bitxor_assign(&mut self, other: PropertyUsage)
fn bitxor_assign(&mut self, other: PropertyUsage)
Toggles the set of flags.
impl BitOrAssign<PropertyUsage> for PropertyUsage
impl BitOrAssign<PropertyUsage> for PropertyUsage
fn bitor_assign(&mut self, other: PropertyUsage)
fn bitor_assign(&mut self, other: PropertyUsage)
Adds the set of flags.
Auto Trait Implementations
impl Send for PropertyUsage
impl Send for PropertyUsage
impl Sync for PropertyUsage
impl Sync for PropertyUsage