pub struct CompiledBindingPathElement<'a>(/* private fields */);Expand description
A read-only view of an element of a CompiledBindingPath.
Implementations§
Source§impl<'a> CompiledBindingPathElement<'a>
impl<'a> CompiledBindingPathElement<'a>
Sourcepub fn kind(&self) -> CompiledBindingPathElementKind
pub fn kind(&self) -> CompiledBindingPathElementKind
What the element is.
Sourcepub fn name(&self) -> Option<&'a str>
pub fn name(&self) -> Option<&'a str>
The name of the member a property or method element reads, of the element a named-element element selects.
Sourcepub fn property(&self) -> Option<Rc<dyn IPropertyInfo>>
pub fn property(&self) -> Option<Rc<dyn IPropertyInfo>>
The description of the property a property element reads (the
Property of the managed original). None for other elements and
for a property that only has untyped accessors (its name and type
are name and property_type).
Sourcepub fn property_type(&self) -> Option<ValueType>
pub fn property_type(&self) -> Option<ValueType>
The type of the property a property element reads.
Sourcepub fn is_typed_property(&self) -> bool
pub fn is_typed_property(&self) -> bool
Whether the element is a property with typed accessors: the one a path must consist of to be instantiated as a typed binding expression.
Sourcepub fn accepts_null(&self) -> bool
pub fn accepts_null(&self) -> bool
Whether a null-conditional operator applies to the access.
Sourcepub fn ancestor(&self) -> Option<(Option<&'static TypeInfo>, usize)>
pub fn ancestor(&self) -> Option<(Option<&'static TypeInfo>, usize)>
The ancestor type and level of an ancestor element.
Sourcepub fn array_indices(&self) -> Option<&'a [i32]>
pub fn array_indices(&self) -> Option<&'a [i32]>
The indexes of an array element.
Trait Implementations§
Source§impl<'a> Clone for CompiledBindingPathElement<'a>
impl<'a> Clone for CompiledBindingPathElement<'a>
impl<'a> Copy for CompiledBindingPathElement<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CompiledBindingPathElement<'a>
impl<'a> !Send for CompiledBindingPathElement<'a>
impl<'a> !Sync for CompiledBindingPathElement<'a>
impl<'a> !UnwindSafe for CompiledBindingPathElement<'a>
impl<'a> Freeze for CompiledBindingPathElement<'a>
impl<'a> Unpin for CompiledBindingPathElement<'a>
impl<'a> UnsafeUnpin for CompiledBindingPathElement<'a>
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more