pub enum HostResolveError {
NotFound,
EmptyMatchedFrame,
UnknownAppFrame,
CentroidOutOfFrame {
nx: f64,
ny: f64,
},
}Expand description
Errors returned by resolve_to_norm_coord.
Variants§
NotFound
The selector matched no node in the tree (after visibility filter).
EmptyMatchedFrame
Matched node has empty bounds (w*h == 0); element is offscreen or hidden.
UnknownAppFrame
Tree bounds (tree.bounds) have w/h ≤ 0 — unknown app frame,
cannot normalize.
CentroidOutOfFrame
Computed (nx, ny) is outside the open interval (0, 1) —
matched node centroid is offscreen.
Trait Implementations§
Source§impl Debug for HostResolveError
impl Debug for HostResolveError
Source§impl Display for HostResolveError
impl Display for HostResolveError
Source§impl Error for HostResolveError
impl Error for HostResolveError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for HostResolveError
impl PartialEq for HostResolveError
impl StructuralPartialEq for HostResolveError
Auto Trait Implementations§
impl Freeze for HostResolveError
impl RefUnwindSafe for HostResolveError
impl Send for HostResolveError
impl Sync for HostResolveError
impl Unpin for HostResolveError
impl UnsafeUnpin for HostResolveError
impl UnwindSafe for HostResolveError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more