pub struct CommandBar<'a, I: ApplicationInfo> { /* private fields */ }Expand description
Widget for rendering a command bar.
Implementations§
Source§impl<'a, I> CommandBar<'a, I>where
I: ApplicationInfo,
impl<'a, I> CommandBar<'a, I>where
I: ApplicationInfo,
Sourcepub fn prompt_style(self, style: Style) -> Self
pub fn prompt_style(self, style: Style) -> Self
Set the style to use for the command bar’s prompt.
If one isn’t provided, then this is the same style specified with CommandBar::style.
Trait Implementations§
Source§impl<I> Default for CommandBar<'_, I>where
I: ApplicationInfo,
impl<I> Default for CommandBar<'_, I>where
I: ApplicationInfo,
Source§impl<I> StatefulWidget for CommandBar<'_, I>where
I: ApplicationInfo,
impl<I> StatefulWidget for CommandBar<'_, I>where
I: ApplicationInfo,
Auto Trait Implementations§
impl<'a, I> Freeze for CommandBar<'a, I>
impl<'a, I> RefUnwindSafe for CommandBar<'a, I>where
I: RefUnwindSafe,
impl<'a, I> Send for CommandBar<'a, I>where
I: Send,
impl<'a, I> Sync for CommandBar<'a, I>where
I: Sync,
impl<'a, I> Unpin for CommandBar<'a, I>where
I: Unpin,
impl<'a, I> UnsafeUnpin for CommandBar<'a, I>
impl<'a, I> UnwindSafe for CommandBar<'a, I>where
I: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more