pub struct HideOptions<Element: Clone> {
pub detect_overflow: Option<DetectOverflowOptions<Element>>,
pub strategy: Option<HideStrategy>,
}
Expand description
Options for Hide
middleware.
Fields§
§detect_overflow: Option<DetectOverflowOptions<Element>>
Options for detect_overflow
.
Defaults to DetectOverflowOptions::default
.
strategy: Option<HideStrategy>
The strategy used to determine when to hide the floating element.
Defaults to HideStrategy::ReferenceHidden
.
Implementations§
Source§impl<Element: Clone> HideOptions<Element>
impl<Element: Clone> HideOptions<Element>
Sourcepub fn detect_overflow(self, value: DetectOverflowOptions<Element>) -> Self
pub fn detect_overflow(self, value: DetectOverflowOptions<Element>) -> Self
Set detect_overflow
option.
Sourcepub fn strategy(self, value: HideStrategy) -> Self
pub fn strategy(self, value: HideStrategy) -> Self
Set strategy
option.
Trait Implementations§
Source§impl<Element: Clone + Clone> Clone for HideOptions<Element>
impl<Element: Clone + Clone> Clone for HideOptions<Element>
Source§fn clone(&self) -> HideOptions<Element>
fn clone(&self) -> HideOptions<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> Default for HideOptions<Element>
impl<Element: Clone> Default for HideOptions<Element>
Source§impl<Element: Clone, Window: Clone> MiddlewareWithOptions<Element, Window, HideOptions<Element>> for Hide<'_, Element, Window>
impl<Element: Clone, Window: Clone> MiddlewareWithOptions<Element, Window, HideOptions<Element>> for Hide<'_, Element, Window>
Source§fn options(&self) -> &Derivable<'_, Element, Window, HideOptions<Element>>
fn options(&self) -> &Derivable<'_, Element, Window, HideOptions<Element>>
The options passed to this middleware.
impl<Element: Clone> StructuralPartialEq for HideOptions<Element>
Auto Trait Implementations§
impl<Element> Freeze for HideOptions<Element>where
Element: Freeze,
impl<Element> RefUnwindSafe for HideOptions<Element>where
Element: RefUnwindSafe,
impl<Element> Send for HideOptions<Element>where
Element: Send,
impl<Element> Sync for HideOptions<Element>where
Element: Sync,
impl<Element> Unpin for HideOptions<Element>where
Element: Unpin,
impl<Element> UnwindSafe for HideOptions<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