pub struct AutoSuggestBox { /* private fields */ }Implementations§
Source§impl AutoSuggestBox
impl AutoSuggestBox
pub fn new() -> Self
pub fn element_ref(self, reference: &ElementRef<Self>) -> Self
pub fn text(self, value: impl Into<String>) -> Self
pub fn text_optional<T>(self, value: Option<T>) -> Self
pub fn items_source<I, S>(self, value: I) -> Self
pub fn items_source_optional<I, S>(self, value: Option<I>) -> Self
pub fn placeholder_text(self, value: impl Into<String>) -> Self
pub fn placeholder_text_optional<T>(self, value: Option<T>) -> Self
pub fn is_enabled(self, value: impl Into<Option<bool>>) -> Self
pub fn on_text_changed(self, callback: impl IntoPayloadCallback<String>) -> Self
pub fn on_suggestion_chosen( self, callback: impl IntoPayloadCallback<String>, ) -> Self
Trait Implementations§
Source§impl Clone for AutoSuggestBox
impl Clone for AutoSuggestBox
Source§fn clone(&self) -> AutoSuggestBox
fn clone(&self) -> AutoSuggestBox
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 moreSource§impl Debug for AutoSuggestBox
impl Debug for AutoSuggestBox
Source§impl Default for AutoSuggestBox
impl Default for AutoSuggestBox
Source§fn default() -> AutoSuggestBox
fn default() -> AutoSuggestBox
Returns the “default value” for a type. Read more
impl FocusControl for AutoSuggestBox
Source§impl From<AutoSuggestBox> for View
impl From<AutoSuggestBox> for View
Source§fn from(value: AutoSuggestBox) -> Self
fn from(value: AutoSuggestBox) -> Self
Converts to this type from the input type.
Source§impl LayoutControl for AutoSuggestBox
impl LayoutControl for AutoSuggestBox
fn width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn opacity(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn horizontal_alignment(
self,
value: impl Into<Option<HorizontalAlignment>>,
) -> Selfwhere
Self: Sized,
fn vertical_alignment(self, value: impl Into<Option<VerticalAlignment>>) -> Selfwhere
Self: Sized,
fn margin(self, value: impl Into<Thickness>) -> Selfwhere
Self: Sized,
fn margin_optional<T>(self, value: Option<T>) -> Self
fn exit_transition(self, transition: ExitTransition) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AutoSuggestBox
impl PartialEq for AutoSuggestBox
impl ReferenceControl for AutoSuggestBox
Source§impl SlotsControl for AutoSuggestBox
impl SlotsControl for AutoSuggestBox
impl StructuralPartialEq for AutoSuggestBox
Auto Trait Implementations§
impl !RefUnwindSafe for AutoSuggestBox
impl !Send for AutoSuggestBox
impl !Sync for AutoSuggestBox
impl !UnwindSafe for AutoSuggestBox
impl Freeze for AutoSuggestBox
impl Unpin for AutoSuggestBox
impl UnsafeUnpin for AutoSuggestBox
Blanket Implementations§
Source§impl<T> AutomationExt for Twhere
T: LayoutControl,
impl<T> AutomationExt for Twhere
T: LayoutControl,
fn automation_name(self, value: impl Into<String>) -> Self
fn automation_id(self, value: impl Into<String>) -> Self
fn automation_heading_level(self, value: AutomationHeadingLevel) -> Self
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