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,
},
}
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
Trait Implementations§
Source§impl Clone for PropertyReference
impl Clone for PropertyReference
Source§fn clone(&self) -> PropertyReference
fn clone(&self) -> PropertyReference
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 moreSource§impl Debug for PropertyReference
impl Debug for PropertyReference
Source§impl Hash for PropertyReference
impl Hash for PropertyReference
Source§impl PartialEq for PropertyReference
impl PartialEq for PropertyReference
impl Eq for PropertyReference
impl StructuralPartialEq for PropertyReference
Auto Trait Implementations§
impl Freeze for PropertyReference
impl RefUnwindSafe for PropertyReference
impl Send for PropertyReference
impl Sync for PropertyReference
impl Unpin for PropertyReference
impl UnwindSafe for PropertyReference
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more