Struct i_slint_compiler::namedreference::NamedReference  
source · pub struct NamedReference(/* private fields */);Expand description
Reference to a property or callback of a given name within an element.
Implementations§
source§impl NamedReference
 
impl NamedReference
pub fn new(element: &ElementRc, name: &str) -> Self
pub fn name(&self) -> &str
pub fn element(&self) -> ElementRc
pub fn ty(&self) -> Type
sourcepub fn is_constant(&self) -> bool
 
pub fn is_constant(&self) -> bool
return true if the property has a constant value for the lifetime of the program
sourcepub fn is_externally_modified(&self) -> bool
 
pub fn is_externally_modified(&self) -> bool
return true if we know that this property is changed by other means than its own binding
sourcepub fn mark_as_set(&self)
 
pub fn mark_as_set(&self)
Mark that this property is set somewhere in the code
Trait Implementations§
source§impl Clone for NamedReference
 
impl Clone for NamedReference
source§fn clone(&self) -> NamedReference
 
fn clone(&self) -> NamedReference
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 NamedReference
 
impl Debug for NamedReference
source§impl Hash for NamedReference
 
impl Hash for NamedReference
source§impl PartialEq for NamedReference
 
impl PartialEq for NamedReference
impl Eq for NamedReference
Auto Trait Implementations§
impl Freeze for NamedReference
impl !RefUnwindSafe for NamedReference
impl !Send for NamedReference
impl !Sync for NamedReference
impl Unpin for NamedReference
impl !UnwindSafe for NamedReference
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
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