pub struct Button(/* private fields */);Expand description
An abreviated notation button
Implementations§
Source§impl Button
impl Button
Sourcepub fn new<S>(b: S) -> Result<Self, CreationError>where
S: ToString,
pub fn new<S>(b: S) -> Result<Self, CreationError>where
S: ToString,
Create a Button from something that can be represented
as a string
Returns a CreationError if the input contains non ASCII
alphabetic characters
Trait Implementations§
impl Eq for Button
impl StructuralPartialEq for Button
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin 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