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 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 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§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