pub struct Alert { /* private fields */ }
Implementations§
Source§impl Alert
impl Alert
Sourcepub fn new_question(
message: &[&str],
negative_text: &str,
positive_text: &str,
width: usize,
height: usize,
style: &AlertStyle,
) -> Self
pub fn new_question( message: &[&str], negative_text: &str, positive_text: &str, width: usize, height: usize, style: &AlertStyle, ) -> Self
§Parameters
width
- Screen widthheight
- Screen height
Sourcepub fn new_warning(
message: &[&str],
width: usize,
height: usize,
style: &AlertStyle,
) -> Self
pub fn new_warning( message: &[&str], width: usize, height: usize, style: &AlertStyle, ) -> Self
§Parameters
width
- Screen widthheight
- Screen height
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Alert
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl UnwindSafe for Alert
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