Enum protobuf::descriptor::file_options::OptimizeMode
source · pub enum OptimizeMode {
SPEED = 1,
CODE_SIZE = 2,
LITE_RUNTIME = 3,
}
Expand description
Generated classes can be optimized for speed or code size.
Variants§
Trait Implementations§
source§impl Clone for OptimizeMode
impl Clone for OptimizeMode
source§fn clone(&self) -> OptimizeMode
fn clone(&self) -> OptimizeMode
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 OptimizeMode
impl Debug for OptimizeMode
source§impl Default for OptimizeMode
impl Default for OptimizeMode
source§impl Enum for OptimizeMode
impl Enum for OptimizeMode
source§fn from_i32(value: i32) -> Option<OptimizeMode>
fn from_i32(value: i32) -> Option<OptimizeMode>
Try to create an enum from
i32
value.
Return None
if value is unknown.source§fn from_str(str: &str) -> Option<OptimizeMode>
fn from_str(str: &str) -> Option<OptimizeMode>
Try to create an enum from
&str
value.
Return None
if str is unknown.source§const VALUES: &'static [OptimizeMode] = _
const VALUES: &'static [OptimizeMode] = _
All enum values for enum type.
source§impl EnumFull for OptimizeMode
impl EnumFull for OptimizeMode
source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl Hash for OptimizeMode
impl Hash for OptimizeMode
source§impl PartialEq for OptimizeMode
impl PartialEq for OptimizeMode
source§fn eq(&self, other: &OptimizeMode) -> bool
fn eq(&self, other: &OptimizeMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OptimizeMode
impl Eq for OptimizeMode
impl StructuralPartialEq for OptimizeMode
Auto Trait Implementations§
impl RefUnwindSafe for OptimizeMode
impl Send for OptimizeMode
impl Sync for OptimizeMode
impl Unpin for OptimizeMode
impl UnwindSafe for OptimizeMode
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