Struct raui_core::application::ChangeNotifier [−][src]
pub struct ChangeNotifier(_);
Expand description
Allows you to check or indicate that an Application has changed
A ChangeNotifier can be obtained from an application with the
change_notifier() method.
Implementations
impl ChangeNotifier[src]
impl ChangeNotifier[src]pub fn change(&mut self)[src]
pub fn change(&mut self)[src]Mark the application as having changed, this will force the UI to re-render its components
pub fn has_changed(&self) -> bool[src]
pub fn has_changed(&self) -> bool[src]Check whether or not the application has changed
pub fn consume_change(&mut self) -> bool[src]
pub fn consume_change(&mut self) -> bool[src]Get whether the application has changed and atomically set it’s changed state to `false
Trait Implementations
impl Clone for ChangeNotifier[src]
impl Clone for ChangeNotifier[src]fn clone(&self) -> ChangeNotifier[src]
fn clone(&self) -> ChangeNotifier[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for ChangeNotifier[src]
impl Debug for ChangeNotifier[src]impl Default for ChangeNotifier[src]
impl Default for ChangeNotifier[src]fn default() -> ChangeNotifier[src]
fn default() -> ChangeNotifier[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChangeNotifier
impl Send for ChangeNotifier
impl Sync for ChangeNotifier
impl Unpin for ChangeNotifier
impl UnwindSafe for ChangeNotifier
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more