pub enum EntityKind {
Show 15 variants
Namespace,
File,
Class,
Interface,
Trait,
Enum,
Struct,
TypeAlias,
Method,
Constructor,
Function,
Field,
Property,
Constant,
Variable,
}Variants§
Namespace
Package, namespace, module.
File
Class
Interface
Trait
Enum
Struct
TypeAlias
Method
Constructor
Function
Field
Property
Constant
Variable
Implementations§
Source§impl EntityKind
impl EntityKind
Sourcepub const ALL: [EntityKind; 15]
pub const ALL: [EntityKind; 15]
Every archetype, in discriminant order (= crate::KindId::of).
pub fn is_type(self) -> bool
pub fn is_callable(self) -> bool
pub fn is_variable(self) -> bool
Trait Implementations§
Source§impl Clone for EntityKind
impl Clone for EntityKind
impl Copy for EntityKind
Source§impl Debug for EntityKind
impl Debug for EntityKind
Source§impl<'de> Deserialize<'de> for EntityKind
impl<'de> Deserialize<'de> for EntityKind
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 EntityKind
Source§impl From<EntityKind> for KindId
impl From<EntityKind> for KindId
Source§fn from(archetype: EntityKind) -> Self
fn from(archetype: EntityKind) -> Self
Converts to this type from the input type.
Source§impl Hash for EntityKind
impl Hash for EntityKind
Source§impl Ord for EntityKind
impl Ord for EntityKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EntityKind
impl PartialEq for EntityKind
Source§impl PartialOrd for EntityKind
impl PartialOrd for EntityKind
Source§impl Serialize for EntityKind
impl Serialize for EntityKind
impl StructuralPartialEq for EntityKind
Auto Trait Implementations§
impl Forget for EntityKind
impl Freeze for EntityKind
impl Move for EntityKind
impl RefUnwindSafe for EntityKind
impl Send for EntityKind
impl Sync for EntityKind
impl Unpin for EntityKind
impl UnsafeUnpin for EntityKind
impl UnwindSafe for EntityKind
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