pub enum OptionsViewOpenDirection {
Up,
Down,
MostSpace,
}Expand description
A direction in which to open the options-view overlay.
See also:
RawAutocomplete::options_view_open_direction, which is of this type.RawAutocomplete::options_view_builderto specify how to build the selectable-options widget.RawAutocomplete::field_view_builderto optionally specify how to build the corresponding field widget.
Variants§
Up
Open upward.
The bottom edge of the options view will align with the top edge of the text field
built by RawAutocomplete::field_view_builder.
Down
Open downward.
The top edge of the options view will align with the bottom edge of the text field
built by RawAutocomplete::field_view_builder.
MostSpace
Open in the direction with the most available space within the overlay.
The available space is calculated as the distance from the field’s top edge to the overlay’s top edge (for upward opening) or from the field’s bottom edge to the overlay’s bottom edge (for downward opening).
If both directions have the same available space, the options view opens downward.
Trait Implementations§
Source§impl Clone for OptionsViewOpenDirection
impl Clone for OptionsViewOpenDirection
impl Copy for OptionsViewOpenDirection
Source§impl Debug for OptionsViewOpenDirection
impl Debug for OptionsViewOpenDirection
impl Eq for OptionsViewOpenDirection
Source§impl PartialEq for OptionsViewOpenDirection
impl PartialEq for OptionsViewOpenDirection
impl StructuralPartialEq for OptionsViewOpenDirection
Auto Trait Implementations§
impl Forget for OptionsViewOpenDirection
impl Freeze for OptionsViewOpenDirection
impl Move for OptionsViewOpenDirection
impl RefUnwindSafe for OptionsViewOpenDirection
impl Send for OptionsViewOpenDirection
impl Sync for OptionsViewOpenDirection
impl Unpin for OptionsViewOpenDirection
impl UnsafeUnpin for OptionsViewOpenDirection
impl UnwindSafe for OptionsViewOpenDirection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.