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
Source§fn clone(&self) -> OptionsViewOpenDirection
fn clone(&self) -> OptionsViewOpenDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.