pub fn needs_rebuild_after_update(&mut self, ctx: &mut UpdateCtx) -> bool {
        if ctx.env_changed() && self.layout.is_some() {
            let rebuild = ctx.env_key_changed(&self.font)
                || ctx.env_key_changed(&self.text_color)
                || self
                    .text_size_override
                    .as_ref()
                    .map(|k| ctx.env_key_changed(k))
                    .unwrap_or(false)
                || self
                    .text
                    .as_ref()
                    .map(|text| text.env_update(&EnvUpdateCtx::for_update(ctx)))
                    .unwrap_or(false);

            if rebuild {
                self.layout = None;
            }
        }
        self.layout.is_none()
    }
/// Called during the containing widgets `update` method; this text object
/// will check to see if any used environment items have changed,
/// and invalidate itself as needed.
///
/// Returns `true` if the text item needs to be rebuilt.
Called during the containing widgets `update` method; this text object
will check to see if any used environment items have changed,
and invalidate itself as needed.

Returns `true` if the text item needs to be rebuilt.
Called during the containing widgets ` update ` method ; this text object will check to see if any used environment items have changed and invalidate itself as needed . Returns ` true ` if the text item needs to be rebuilt .
pub fn needs_rebuild_after_update(&mut self, ctx: &mut UpdateCtx) -> bool {
        if ctx.env_changed() && self.layout.is_some() {
            let rebuild = ctx.env_key_changed(&self.font)
                || ctx.env_key_changed(&self.text_color)
                || self
                    .text_size_override
                    .as_ref()
                    .map(|k| ctx.env_key_changed(k))
                    .unwrap_or(false)
                || self
                    .text
                    .as_ref()
                    .map(|text| text.env_update(&EnvUpdateCtx::for_update(ctx)))
                    .unwrap_or(false);
            if rebuild {
                self.layout = None;
            }
        }
        self.layout.is_none()
    }
pub fn needs_rebuild_after_update ( & mut self , ctx : & mut UpdateCtx ) -> bool { if ctx . env_changed ( ) && self . layout . is_some ( ) { let rebuild = ctx . env_key_changed ( & self . font ) || ctx . env_key_changed ( & self . text_color ) || self . text_size_override . as_ref ( ) . map ( | k | ctx . env_key_changed ( k ) ) . unwrap_or ( false ) || self . text . as_ref ( ) . map ( | text | text . env_update ( & EnvUpdateCtx :: for_update ( ctx ) ) ) . unwrap_or ( false ) ; if rebuild { self . layout = None ; } } self . layout . is_none ( ) }
Called during the containing widgets `update` method; this text object
will check to see if any used environment items have changed,
and invalidate itself as needed.
Called during the containing widgets ` update ` method ; this text object will check to see if any used environment items have changed and invalidate itself as needed .
&mut self
ctx
&mut UpdateCtx
&mut self
ctx
&mut UpdateCtx