pub struct HideOptions<Element>where
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> HideOptions<Element>where
Element: Clone,
impl<Element> HideOptions<Element>where
Element: Clone,
Sourcepub fn detect_overflow(
self,
value: DetectOverflowOptions<Element>,
) -> HideOptions<Element>
pub fn detect_overflow( self, value: DetectOverflowOptions<Element>, ) -> HideOptions<Element>
Set detect_overflow
option.
Sourcepub fn strategy(self, value: HideStrategy) -> HideOptions<Element>
pub fn strategy(self, value: HideStrategy) -> HideOptions<Element>
Set strategy
option.
Trait Implementations§
Source§impl<Element> Clone for HideOptions<Element>where
Element: Clone,
impl<Element> Clone for HideOptions<Element>where
Element: Clone,
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> Debug for HideOptions<Element>
impl<Element> Debug for HideOptions<Element>
Source§impl<Element> Default for HideOptions<Element>where
Element: Clone,
impl<Element> Default for HideOptions<Element>where
Element: Clone,
Source§fn default() -> HideOptions<Element>
fn default() -> HideOptions<Element>
Returns the “default value” for a type. Read more
Source§impl<Element, Window> MiddlewareWithOptions<Element, Window, HideOptions<Element>> for Hide<'_, Element, Window>
impl<Element, Window> 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.
Source§impl<Element> PartialEq for HideOptions<Element>
impl<Element> PartialEq for HideOptions<Element>
impl<Element> StructuralPartialEq for HideOptions<Element>where
Element: Clone,
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