pub struct Chip { /* private fields */ }Expand description
A small label: a tag, a status, a count.
Implementations§
Source§impl Chip
impl Chip
pub fn new() -> Self
Sourcepub fn class(self, v: impl Into<String>) -> Self
pub fn class(self, v: impl Into<String>) -> Self
Extra classes for the outer element. They win over the defaults.
Sourcepub fn with(self, part: impl Part) -> Self
pub fn with(self, part: impl Part) -> Self
Add an attribute (class(..), id(..), aria(..), …) or a child.
pub fn color(self, v: Color) -> Self
pub fn variant(self, v: Variant) -> Self
pub fn size(self, v: Size) -> Self
pub fn radius(self, v: Radius) -> Self
pub fn start_content(self, v: impl View) -> Self
pub fn end_content(self, v: impl View) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Chip
impl !Sync for Chip
impl !UnwindSafe for Chip
impl Forget for Chip
impl Freeze for Chip
impl Move for Chip
impl Send for Chip
impl Unpin for Chip
impl UnsafeUnpin for Chip
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