#[repr(i32)]pub enum Precision {
Second = 0,
Minute = 1,
Hour = 2,
Day = 3,
}
Variants§
Implementations§
§impl Precision
impl Precision
pub 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.
pub fn from_str_name(value: &str) -> Option<Precision>
pub fn from_str_name(value: &str) -> Option<Precision>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Ord for Precision
impl Ord for Precision
§impl PartialOrd for Precision
impl PartialOrd for Precision
§fn partial_cmp(&self, other: &Precision) -> Option<Ordering>
fn partial_cmp(&self, other: &Precision) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Precision
impl Eq for Precision
impl StructuralEq for Precision
impl StructuralPartialEq for Precision
Auto Trait Implementations§
impl RefUnwindSafe for Precision
impl Send for Precision
impl Sync for Precision
impl Unpin for Precision
impl UnwindSafe for Precision
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.