pub struct Attached { /* private fields */ }Expand description
A button joined to the field’s end.
Implementations§
Source§impl Attached
impl Attached
Sourcepub fn icon(icon: impl Into<IconRef>, label: &str) -> Self
pub fn icon(icon: impl Into<IconRef>, label: &str) -> Self
An icon button, named label for assistive technologies; the
icon by value or by name ("folder", "phosphor:export"; an
unknown name is reported and drawn as the placeholder).
Makes it a split button: its action, and a chevron opening a menu of these items.
Trait Implementations§
impl StructuralPartialEq for Attached
Auto Trait Implementations§
impl Freeze for Attached
impl RefUnwindSafe for Attached
impl Send for Attached
impl Sync for Attached
impl Unpin for Attached
impl UnsafeUnpin for Attached
impl UnwindSafe for Attached
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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