#[non_exhaustive]pub enum Kind {
Show 17 variants
Double,
Float,
Int32,
Int64,
Uint32,
Uint64,
Sint32,
Sint64,
Fixed32,
Fixed64,
Sfixed32,
Sfixed64,
Bool,
String,
Bytes,
Message(MessageDescriptor),
Enum(EnumDescriptor),
}Expand description
Resolved scalar / aggregate type for a field.
Message and enum kinds carry the resolved descriptor handle, not just the type name.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Double
double
Float
float
Int32
int32
Int64
int64
Uint32
uint32
Uint64
uint64
Sint32
sint32
Sint64
sint64
Fixed32
fixed32
Fixed64
fixed64
Sfixed32
sfixed32
Sfixed64
sfixed64
Bool
bool
String
string
Bytes
bytes
Message(MessageDescriptor)
Sub-message reference.
Enum(EnumDescriptor)
Enum reference.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin 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