pub struct Button { /* private fields */ }Implementations§
Source§impl Button
impl Button
pub fn new(label: impl Into<WidgetText>) -> Self
pub fn primary(label: impl Into<WidgetText>) -> Self
pub fn secondary(label: impl Into<WidgetText>) -> Self
pub fn ghost(label: impl Into<WidgetText>) -> Self
pub fn outline(label: impl Into<WidgetText>) -> Self
pub fn danger(label: impl Into<WidgetText>) -> Self
pub fn link(label: impl Into<WidgetText>) -> Self
pub fn variant(self, v: Variant) -> Self
pub fn size(self, s: Size) -> Self
pub fn small(self) -> Self
pub fn large(self) -> Self
pub fn disabled(self, d: bool) -> Self
pub fn full_width(self) -> Self
pub fn min_width(self, w: f32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnsafeUnpin for Button
impl UnwindSafe for Button
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