#[repr(i32)]pub enum UnitLvl {
Unknown = 0,
One = 1,
Two = 2,
Three = 3,
}Expand description
option optimize_for = LITE_RUNTIME; 三挡: 亿 B 二挡: 百万 M 一档: 万 K 中/日 其他 UnitLvl 枚举 筛选场景下的公共结构,例如筛选条件,标的、期权筛选均可以使用
Variants§
Implementations§
Source§impl UnitLvl
impl UnitLvl
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 Ord for UnitLvl
impl Ord for UnitLvl
Source§impl PartialOrd for UnitLvl
impl PartialOrd for UnitLvl
impl Copy for UnitLvl
impl Eq for UnitLvl
impl StructuralPartialEq for UnitLvl
Auto Trait Implementations§
impl Freeze for UnitLvl
impl RefUnwindSafe for UnitLvl
impl Send for UnitLvl
impl Sync for UnitLvl
impl Unpin for UnitLvl
impl UnsafeUnpin for UnitLvl
impl UnwindSafe for UnitLvl
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.