Trait VirtualElementFactory

Source
pub trait VirtualElementFactory<Element: 'static>:
    Clone
    + PartialEq
    + Sized
    + 'static {
    // Required methods
    fn get_bounding_client_rect(&self) -> ClientRectObject;
    fn get_client_rects(&self) -> Option<Vec<ClientRectObject>>;
    fn context_element(&self) -> Option<Element>;
}
Expand description

Custom positioning reference element.

See the Rust Floating UI book for more documentation.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§