Struct floating_ui_core::middleware::ArrowOptions
source · pub struct ArrowOptions<Element: Clone> {
pub element: Element,
pub padding: Option<Padding>,
}
Expand description
Options for Arrow
.
Fields§
§element: Element
The arrow element to be positioned.
padding: Option<Padding>
The padding between the arrow element and the floating element edges. Useful when the floating element has rounded corners.
Defaults to 0
on all sides.
Implementations§
Trait Implementations§
source§impl<Element: Clone + Clone> Clone for ArrowOptions<Element>
impl<Element: Clone + Clone> Clone for ArrowOptions<Element>
source§fn clone(&self) -> ArrowOptions<Element>
fn clone(&self) -> ArrowOptions<Element>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, Element: Clone, Window: Clone> MiddlewareWithOptions<Element, Window, ArrowOptions<Element>> for Arrow<'a, Element, Window>
impl<'a, Element: Clone, Window: Clone> MiddlewareWithOptions<Element, Window, ArrowOptions<Element>> for Arrow<'a, Element, Window>
source§fn options(&self) -> &Derivable<'_, Element, Window, ArrowOptions<Element>>
fn options(&self) -> &Derivable<'_, Element, Window, ArrowOptions<Element>>
The options passed to this middleware.
Auto Trait Implementations§
impl<Element> Freeze for ArrowOptions<Element>where
Element: Freeze,
impl<Element> RefUnwindSafe for ArrowOptions<Element>where
Element: RefUnwindSafe,
impl<Element> Send for ArrowOptions<Element>where
Element: Send,
impl<Element> Sync for ArrowOptions<Element>where
Element: Sync,
impl<Element> Unpin for ArrowOptions<Element>where
Element: Unpin,
impl<Element> UnwindSafe for ArrowOptions<Element>where
Element: UnwindSafe,
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