pub enum InternalFieldType {
}Expand description
The internally tracked type of a field.
The type owns all of its data, and can refer to an internally tracked ID for resolved type references. It’s by design not possible to construct those IDs from outside this module.
Variants§
UnresolvedMessage(String)
A message that is yet to be resolved.
UnresolvedEnum(String)
An enum that is yet to be resolved.
Double
The double type.
Float
The float type.
Int64
The int64 type.
UInt64
The uint64 type.
Int32
The int32 type.
Fixed64
The fixed64 type.
Fixed32
The fixed32 type.
Bool
The bool type.
String
The string type.
Group
The group type.
Message(MessageId)
A resolved message type.
Bytes
The bytes type.
UInt32
The uint32 type.
Enum(EnumId)
A resolved enum type.
SFixed32
The sfixed32 type.
SFixed64
The sfixed64 type.
SInt32
The sint32 type.
SInt64
The sint64 type.
Implementations§
Source§impl InternalFieldType
impl InternalFieldType
Sourcepub fn from_proto(
proto: FieldDescriptorProto_Type,
type_name: &str,
) -> InternalFieldType
pub fn from_proto( proto: FieldDescriptorProto_Type, type_name: &str, ) -> InternalFieldType
Converts a proto field type into a native field type.
Trait Implementations§
Source§impl Debug for InternalFieldType
impl Debug for InternalFieldType
Source§impl PartialEq for InternalFieldType
impl PartialEq for InternalFieldType
Source§fn eq(&self, other: &InternalFieldType) -> bool
fn eq(&self, other: &InternalFieldType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for InternalFieldType
impl StructuralPartialEq for InternalFieldType
Auto Trait Implementations§
impl Freeze for InternalFieldType
impl RefUnwindSafe for InternalFieldType
impl Send for InternalFieldType
impl Sync for InternalFieldType
impl Unpin for InternalFieldType
impl UnsafeUnpin for InternalFieldType
impl UnwindSafe for InternalFieldType
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