#[repr(i32)]pub enum Kind {
Show 28 variants
Unknown = 0,
NormalFunction = 1,
Module = 2,
AsyncModule = 3,
BaseConstructor = 4,
DefaultBaseConstructor = 5,
DefaultDerivedConstructor = 6,
DerivedConstructor = 7,
GetterFunction = 8,
StaticGetterFunction = 9,
SetterFunction = 10,
StaticSetterFunction = 11,
ArrowFunction = 12,
AsyncArrowFunction = 13,
AsyncFunction = 14,
AsyncConciseMethod = 15,
StaticAsyncConciseMethod = 16,
AsyncConciseGeneratorMethod = 17,
StaticAsyncConciseGeneratorMethod = 18,
AsyncGeneratorFunction = 19,
GeneratorFunction = 20,
ConciseGeneratorMethod = 21,
StaticConciseGeneratorMethod = 22,
ConciseMethod = 23,
StaticConciseMethod = 24,
ClassMembersInitializerFunction = 25,
ClassStaticInitializerFunction = 26,
Invalid = 27,
}
Variants§
Unknown = 0
NormalFunction = 1
Module = 2
AsyncModule = 3
BaseConstructor = 4
DefaultBaseConstructor = 5
DefaultDerivedConstructor = 6
DerivedConstructor = 7
GetterFunction = 8
StaticGetterFunction = 9
SetterFunction = 10
StaticSetterFunction = 11
ArrowFunction = 12
AsyncArrowFunction = 13
AsyncFunction = 14
AsyncConciseMethod = 15
StaticAsyncConciseMethod = 16
AsyncConciseGeneratorMethod = 17
StaticAsyncConciseGeneratorMethod = 18
AsyncGeneratorFunction = 19
GeneratorFunction = 20
ConciseGeneratorMethod = 21
StaticConciseGeneratorMethod = 22
ConciseMethod = 23
StaticConciseMethod = 24
ClassMembersInitializerFunction = 25
ClassStaticInitializerFunction = 26
Invalid = 27
Implementations§
Source§impl Kind
impl Kind
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for Kind
impl Ord for Kind
Source§impl PartialOrd for Kind
impl PartialOrd for Kind
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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