pub struct Toast { /* private fields */ }Expand description
Implementations§
Source§impl Toast
impl Toast
Sourcepub fn level(self, level: ToastLevel) -> Self
pub fn level(self, level: ToastLevel) -> Self
Set the toast level
Sourcepub fn position(self, position: ToastPosition) -> Self
pub fn position(self, position: ToastPosition) -> Self
Set the toast position
Sourcepub fn show_border(self, show: bool) -> Self
pub fn show_border(self, show: bool) -> Self
Show or hide the border
Trait Implementations§
Source§impl StyledView for Toast
impl StyledView for Toast
Source§fn remove_class(&mut self, class: &str)
fn remove_class(&mut self, class: &str)
Remove a CSS class
Source§fn toggle_class(&mut self, class: &str)
fn toggle_class(&mut self, class: &str)
Toggle a CSS class
Auto Trait Implementations§
impl Freeze for Toast
impl RefUnwindSafe for Toast
impl Send for Toast
impl Sync for Toast
impl Unpin for Toast
impl UnsafeUnpin for Toast
impl UnwindSafe for Toast
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