Struct i_slint_compiler::namedreference::NamedReference
source · [−]pub struct NamedReference(_);
Expand description
Reference to a property or callback of a given name within an element.
Implementations
sourceimpl 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
sourceimpl Clone for NamedReference
impl Clone for NamedReference
sourcefn clone(&self) -> NamedReference
fn clone(&self) -> NamedReference
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NamedReference
impl Debug for NamedReference
sourceimpl Hash for NamedReference
impl Hash for NamedReference
sourceimpl PartialEq<NamedReference> for NamedReference
impl PartialEq<NamedReference> for NamedReference
impl Eq for NamedReference
Auto Trait Implementations
impl !RefUnwindSafe for NamedReference
impl !Send for NamedReference
impl !Sync for NamedReference
impl Unpin for NamedReference
impl !UnwindSafe for NamedReference
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more