pub(crate) enum BlockKind {
TopLevel,
Function,
Ui,
Action,
Menu,
Struct,
Other,
}Expand description
What a { … } holds, which decides the statements allowed in it.
Variants§
TopLevel
Function
A function body, where return works.
Ui
A window or view body, or a layout element’s children.
Action
A button’s action.
Menu
A menu’s items.
Struct
A struct’s fields.
Other
A block nothing more is known about, such as one after a call that takes none.
Trait Implementations§
impl Copy for BlockKind
impl Eq for BlockKind
impl StructuralPartialEq for BlockKind
Auto Trait Implementations§
impl Freeze for BlockKind
impl RefUnwindSafe for BlockKind
impl Send for BlockKind
impl Sync for BlockKind
impl Unpin for BlockKind
impl UnsafeUnpin for BlockKind
impl UnwindSafe for BlockKind
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