Enum i_slint_compiler::llr::PropertyReference
source · pub enum PropertyReference {
Local {
sub_component_path: Vec<usize>,
property_index: PropertyIndex,
},
InNativeItem {
sub_component_path: Vec<usize>,
item_index: usize,
prop_name: String,
},
InParent {
level: NonZeroUsize,
parent_reference: Box<PropertyReference>,
},
Global {
global_index: usize,
property_index: usize,
},
Function {
sub_component_path: Vec<usize>,
function_index: usize,
},
GlobalFunction {
global_index: usize,
function_index: usize,
},
}
Expand description
a Reference to a property, in the context of a SubComponent
Variants§
Local
A property relative to this SubComponent
InNativeItem
A property in a Native item
InParent
The properties is a property relative to a parent ItemTree (level
level deep)
Global
The property within a GlobalComponent
Function
A function in a sub component.
GlobalFunction
A function in a global.
Trait Implementations§
source§impl Clone for PropertyReference
impl Clone for PropertyReference
source§fn clone(&self) -> PropertyReference
fn clone(&self) -> PropertyReference
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 moresource§impl Debug for PropertyReference
impl Debug for PropertyReference
source§impl Hash for PropertyReference
impl Hash for PropertyReference
source§impl PartialEq<PropertyReference> for PropertyReference
impl PartialEq<PropertyReference> for PropertyReference
source§fn eq(&self, other: &PropertyReference) -> bool
fn eq(&self, other: &PropertyReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.