Skip to main content

DialogFooterButton

Trait DialogFooterButton 

Source
pub trait DialogFooterButton {
    // Provided methods
    fn is_cancel(&self) -> bool { ... }
    fn is_action(&self) -> bool { ... }
}
Expand description

重导出对话框组件 对话框按钮辅助 trait,用于标记取消/确认按钮。

Provided Methods§

Source

fn is_cancel(&self) -> bool

是否为取消按钮。

Source

fn is_action(&self) -> bool

是否为确认按钮。

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§