#[repr(i32)]pub enum CompareType {
Undefined = 0,
CompareInvalid = 1,
CompareLt = 2,
CompareLe = 3,
CompareEq = 4,
CompareGe = 5,
CompareGt = 6,
CompareNe = 7,
CompareOverlap = 8,
CompareContainedBy = 9,
}Variants§
Undefined = 0
CompareInvalid = 1
CompareLt = 2
CompareLe = 3
CompareEq = 4
CompareGe = 5
CompareGt = 6
CompareNe = 7
CompareOverlap = 8
CompareContainedBy = 9
Implementations§
Source§impl CompareType
impl CompareType
Source§impl CompareType
impl CompareType
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 CompareType
impl Clone for CompareType
Source§fn clone(&self) -> CompareType
fn clone(&self) -> CompareType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompareType
Source§impl Debug for CompareType
impl Debug for CompareType
Source§impl Default for CompareType
impl Default for CompareType
Source§fn default() -> CompareType
fn default() -> CompareType
Returns the “default value” for a type. Read more
impl Eq for CompareType
Source§impl From<CompareType> for i32
impl From<CompareType> for i32
Source§fn from(value: CompareType) -> i32
fn from(value: CompareType) -> i32
Converts to this type from the input type.
Source§impl Hash for CompareType
impl Hash for CompareType
Source§impl Ord for CompareType
impl Ord for CompareType
Source§fn cmp(&self, other: &CompareType) -> Ordering
fn cmp(&self, other: &CompareType) -> Ordering
1.21.0 (const: unstable) · 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 CompareType
impl PartialEq for CompareType
Source§impl PartialOrd for CompareType
impl PartialOrd for CompareType
Source§impl Serialize for CompareType
impl Serialize for CompareType
impl StructuralPartialEq for CompareType
Source§impl TryFrom<i32> for CompareType
impl TryFrom<i32> for CompareType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<CompareType, UnknownEnumValue>
fn try_from(value: i32) -> Result<CompareType, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CompareType
impl RefUnwindSafe for CompareType
impl Send for CompareType
impl Sync for CompareType
impl Unpin for CompareType
impl UnsafeUnpin for CompareType
impl UnwindSafe for CompareType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more