Trait IntoPoint
pub trait IntoPoint {
// Required method
fn into_point(self) -> Result<Point, Error>;
}Expand description
A target that can be lowered to a screen Point.
Implemented for:
Pointand(i32, i32)— used as-is.&Element— uses the element’sboundsfield at the call site, withAnchor::Center. For a non-default anchor, callpoint_foryourself and pass the resultingPoint.
Not implemented for crate::Locator: the caller must explicitly resolve
the locator to an Element first. This keeps the cost of provider traffic
(and the failure mode) visible at the call site.