pub fn create_dependent_clone(&self) -> Self {
        let self_clone = self.clone();
        let dependent_clone = Fate::from_expression(
            Box::new(move || {
                let value = self_clone.get();
                value
            }),
            vec![Box::new(self.clone())],
        );
        dependent_clone
    }
/// Creates a Fate with the same value that depends on this Fate.
/// This can be useful for easily checking when the value has been updated.
///
/// # Examples
///
/// ```
/// fate! {
///     let a = 5;
///     let b = a + 3;
/// }
/// let child = b.create_dependent_clone();
/// assert_eq!(child.get(), 8);
/// fate! {
///     a = 10;
/// }
/// assert_eq!(b.get(), 13);
/// assert_eq!(b.is_dirty(), false);
/// assert_eq!(child.is_dirty(), true);
/// assert_eq!(child.get(), 13);
/// assert_eq!(child.is_dirty(), false);
/// ```
Creates a Fate with the same value that depends on this Fate.
This can be useful for easily checking when the value has been updated.
Creates a Fate with the same value that depends on this Fate . This can be useful for easily checking when the value has been updated .
pub fn create_dependent_clone(&self) -> Self {
        let self_clone = self.clone();
        let dependent_clone = Fate::from_expression(
            Box::new(move || {
                let value = self_clone.get();
                value
            }),
            vec![Box::new(self.clone())],
        );
        dependent_clone
    }
pub fn create_dependent_clone ( & self ) -> Self { let self_clone = self . clone ( ) ; let dependent_clone = Fate :: from_expression ( Box :: new ( move | | { let value = self_clone . get ( ) ; value } ) , vec ! [ Box new ( self clone ( ) ) ] , ) ; dependent_clone }
Creates a Fate with the same value that depends on this Fate.
Creates a Fate with the same value that depends on this Fate .
&self
examples
None