pub fn link_for_pos(&self, pos: Point) -> Option<&Link> {
        let (_, i) = self
            .links
            .iter()
            .rfind(|(hit_box, _)| hit_box.contains(pos))?;

        let text = self.text()?;
        text.links().get(*i)
    }
/// Returns the [`Link`] at the provided point (relative to the layout's origin) if one exists.
///
/// This can be used both for hit-testing (deciding whether to change the mouse cursor,
/// or performing some other action when hovering) as well as for retrieving a [`Link`]
/// on click.
///
/// [`Link`]: super::attribute::Link
Returns the [`Link`] at the provided point (relative to the layout's origin) if one exists.
This can be used both for hit-testing (deciding whether to change the mouse cursor,
or performing some other action when hovering) as well as for retrieving a [`Link`]
on click.


Returns the [ ` Link ` ] at the provided point ( relative to the layout ' s origin ) if one exists . This can be used both for hit - testing ( deciding whether to change the mouse cursor or performing some other action when hovering ) as well as for retrieving a [ ` Link ` ] on click .
pub fn link_for_pos(&self, pos: Point) -> Option<&Link> {
        let (_, i) = self
            .links
            .iter()
            .rfind(|(hit_box, _)| hit_box.contains(pos))?;
        let text = self.text()?;
        text.links().get(*i)
    }
pub fn link_for_pos ( & self , pos : Point ) -> Option < & Link > { let ( _ , i ) = self . links . iter ( ) . rfind ( | ( hit_box , _ ) | hit_box . contains ( pos ) ) ? ; let text = self . text ( ) ? ; text . links ( ) . get ( * i ) }
Returns the [`Link`] at the provided point (relative to the layout's origin) if one exists.
Returns the [ ` Link ` ] at the provided point ( relative to the layout ' s origin ) if one exists .
&self
pos
Point
&self
pos
Point