pub struct CancelDialog;Expand description
重导出对话框组件
CancelDialog 动作。
Trait Implementations§
Source§impl Action for CancelDialog
impl Action for CancelDialog
Source§fn name_for_type() -> &'static strwhere
Self: Sized,
fn name_for_type() -> &'static strwhere
Self: Sized,
获取此动作类型的名称(静态)
Source§fn partial_eq(&self, action: &dyn Action) -> bool
fn partial_eq(&self, action: &dyn Action) -> bool
对此动作与另一个动作进行部分相等性检查
Source§fn boxed_clone(&self) -> Box<dyn Action>
fn boxed_clone(&self) -> Box<dyn Action>
将动作克隆到新的 Box 中
Source§fn build(_value: Value) -> Result<Box<dyn Action>>
fn build(_value: Value) -> Result<Box<dyn Action>>
从 JSON 值构建此动作。用于从键映射构造动作。
对于没有参数的动作,将传递
{} 值。Source§fn action_json_schema(_generator: &mut SchemaGenerator) -> Option<Schema>
fn action_json_schema(_generator: &mut SchemaGenerator) -> Option<Schema>
动作输入数据的可选 JSON 模式。
Source§fn deprecated_aliases() -> &'static [&'static str]
fn deprecated_aliases() -> &'static [&'static str]
此动作的替代已弃用名称列表。这些名称仍可用于调用该动作。
在 Zed 中,键映射 JSON 模式将接受这些旧名称并提供警告。
Source§fn deprecation_message() -> Option<&'static str>
fn deprecation_message() -> Option<&'static str>
返回此动作的弃用消息(如果有)。在 Zed 中,键映射 JSON 模式会将其显示为警告。
Source§fn documentation() -> Option<&'static str>
fn documentation() -> Option<&'static str>
此动作的文档(如果有)。使用动作的派生宏时,
这将从动作结构体上的文档注释自动生成。
Source§impl Clone for CancelDialog
impl Clone for CancelDialog
Source§impl Debug for CancelDialog
impl Debug for CancelDialog
Source§impl Default for CancelDialog
impl Default for CancelDialog
Source§impl PartialEq for CancelDialog
impl PartialEq for CancelDialog
impl StructuralPartialEq for CancelDialog
Auto Trait Implementations§
impl Forget for CancelDialog
impl Freeze for CancelDialog
impl Move for CancelDialog
impl RefUnwindSafe for CancelDialog
impl Send for CancelDialog
impl Sync for CancelDialog
impl Unpin for CancelDialog
impl UnsafeUnpin for CancelDialog
impl UnwindSafe for CancelDialog
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more