pub enum StructureKind {
Class,
Struct,
Structure,
Widget,
Trait,
}Expand description
Structure keyword kind for class-like definitions.
Variants§
Class
Using class keyword.
Struct
Using struct keyword (deprecated, use class instead).
Structure
Using structure keyword.
Widget
Using widget keyword.
Trait
Using trait keyword.
Trait Implementations§
Source§impl Clone for StructureKind
impl Clone for StructureKind
Source§fn clone(&self) -> StructureKind
fn clone(&self) -> StructureKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StructureKind
Source§impl Debug for StructureKind
impl Debug for StructureKind
Source§impl Default for StructureKind
impl Default for StructureKind
Source§fn default() -> StructureKind
fn default() -> StructureKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StructureKind
impl<'de> Deserialize<'de> for StructureKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StructureKind
Source§impl Hash for StructureKind
impl Hash for StructureKind
Source§impl PartialEq for StructureKind
impl PartialEq for StructureKind
Source§fn eq(&self, other: &StructureKind) -> bool
fn eq(&self, other: &StructureKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StructureKind
impl Serialize for StructureKind
impl StructuralPartialEq for StructureKind
Auto Trait Implementations§
impl Freeze for StructureKind
impl RefUnwindSafe for StructureKind
impl Send for StructureKind
impl Sync for StructureKind
impl Unpin for StructureKind
impl UnsafeUnpin for StructureKind
impl UnwindSafe for StructureKind
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