find_notification_mut

Function find_notification_mut 

Source
pub fn find_notification_mut(
    view: &mut dyn View,
    id: ViewId,
) -> Option<&mut Notification>
Expand description

Recursively searches the view tree for a notification with the given ViewId.

§Arguments

  • view - The root view to start searching from
  • id - The ViewId to search for

§Returns

A mutable reference to the Notification if found, or None if not found.

§Note

This function performs a depth-first search through the entire view hierarchy. It will find the first notification that matches the given id.