#[repr(i32)]pub enum CompressMethod {
Unknown = 0,
Polyline = 1,
}
Variants§
Implementations§
Source§impl CompressMethod
impl CompressMethod
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 Clone for CompressMethod
impl Clone for CompressMethod
Source§fn clone(&self) -> CompressMethod
fn clone(&self) -> CompressMethod
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 CompressMethod
impl Debug for CompressMethod
Source§impl Default for CompressMethod
impl Default for CompressMethod
Source§fn default() -> CompressMethod
fn default() -> CompressMethod
Returns the “default value” for a type. Read more
Source§impl From<CompressMethod> for i32
impl From<CompressMethod> for i32
Source§fn from(value: CompressMethod) -> i32
fn from(value: CompressMethod) -> i32
Converts to this type from the input type.
Source§impl Hash for CompressMethod
impl Hash for CompressMethod
Source§impl Ord for CompressMethod
impl Ord for CompressMethod
Source§fn cmp(&self, other: &CompressMethod) -> Ordering
fn cmp(&self, other: &CompressMethod) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CompressMethod
impl PartialEq for CompressMethod
Source§impl PartialOrd for CompressMethod
impl PartialOrd for CompressMethod
Source§impl TryFrom<i32> for CompressMethod
impl TryFrom<i32> for CompressMethod
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<CompressMethod, UnknownEnumValue>
fn try_from(value: i32) -> Result<CompressMethod, UnknownEnumValue>
Performs the conversion.
impl Copy for CompressMethod
impl Eq for CompressMethod
impl StructuralPartialEq for CompressMethod
Auto Trait Implementations§
impl Freeze for CompressMethod
impl RefUnwindSafe for CompressMethod
impl Send for CompressMethod
impl Sync for CompressMethod
impl Unpin for CompressMethod
impl UnwindSafe for CompressMethod
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