Enum protobuf::descriptor::FieldOptions_CType
source · pub enum FieldOptions_CType {
STRING,
CORD,
STRING_PIECE,
}
Variants§
Trait Implementations§
source§impl Clone for FieldOptions_CType
impl Clone for FieldOptions_CType
source§fn clone(&self) -> FieldOptions_CType
fn clone(&self) -> FieldOptions_CType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FieldOptions_CType
impl Debug for FieldOptions_CType
source§impl Default for FieldOptions_CType
impl Default for FieldOptions_CType
source§impl Hash for FieldOptions_CType
impl Hash for FieldOptions_CType
source§impl PartialEq<FieldOptions_CType> for FieldOptions_CType
impl PartialEq<FieldOptions_CType> for FieldOptions_CType
source§fn eq(&self, other: &FieldOptions_CType) -> bool
fn eq(&self, other: &FieldOptions_CType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ProtobufEnum for FieldOptions_CType
impl ProtobufEnum for FieldOptions_CType
source§fn from_i32(value: i32) -> Option<FieldOptions_CType>
fn from_i32(value: i32) -> Option<FieldOptions_CType>
Try to create an enum from
i32
value.
Return None
if value is unknown.source§fn enum_descriptor_static() -> &'static EnumDescriptor
fn enum_descriptor_static() -> &'static EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> &'static EnumValueDescriptor
fn descriptor(&self) -> &'static EnumValueDescriptor
Get enum value descriptor.
source§fn enum_descriptor(&self) -> &'static EnumDescriptor
fn enum_descriptor(&self) -> &'static EnumDescriptor
Get enum descriptor.
source§impl ProtobufValue for FieldOptions_CType
impl ProtobufValue for FieldOptions_CType
source§fn as_ref(&self) -> ReflectValueRef<'_>
fn as_ref(&self) -> ReflectValueRef<'_>
As ref
source§fn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
source§fn as_ref_copy(&self) -> ReflectValueRef<'static>
fn as_ref_copy(&self) -> ReflectValueRef<'static>
impl Copy for FieldOptions_CType
impl Eq for FieldOptions_CType
impl StructuralEq for FieldOptions_CType
impl StructuralPartialEq for FieldOptions_CType
Auto Trait Implementations§
impl RefUnwindSafe for FieldOptions_CType
impl Send for FieldOptions_CType
impl Sync for FieldOptions_CType
impl Unpin for FieldOptions_CType
impl UnwindSafe for FieldOptions_CType
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