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 duplicate 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<Element: Clone, Window: Clone> MiddlewareWithOptions<Element, Window, ArrowOptions<Element>> for Arrow<'_, Element, Window>
impl<Element: Clone, Window: Clone> MiddlewareWithOptions<Element, Window, ArrowOptions<Element>> for Arrow<'_, 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.
impl<Element: Clone> StructuralPartialEq for ArrowOptions<Element>
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