pub struct ChipScope { /* private fields */ }Expand description
A Chip and its builder.
Implementations§
Source§impl ChipScope
impl ChipScope
pub fn icon(self, icon: IconRole) -> Self
pub fn selected(self, selected: bool) -> Self
pub fn enabled(self, enabled: bool) -> Self
Sourcepub fn max_lines(self, lines: u32) -> Self
pub fn max_lines(self, lines: u32) -> Self
How many lines the label may take. A label is one line unless this says more, so a chip label is one line unless this says more.
Sourcepub fn overflow(self, overflow: TextOverflow) -> Self
pub fn overflow(self, overflow: TextOverflow) -> Self
What happens to a label longer than its lines.
pub fn on_click(self, handler: impl FnMut() + 'static) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ChipScope
impl !Send for ChipScope
impl !Sync for ChipScope
impl !UnwindSafe for ChipScope
impl Forget for ChipScope
impl Freeze for ChipScope
impl Move for ChipScope
impl Unpin for ChipScope
impl UnsafeUnpin for ChipScope
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