#[repr(i32)]pub enum IndicatorShape {
Show 13 variants
Unknown = 0,
Xcross = 1,
Cross = 2,
Circle = 3,
TriangleUp = 4,
TriangleDown = 5,
Flag = 6,
ArrowUp = 7,
ArrowDown = 8,
Square = 9,
Diamond = 10,
LabelUp = 11,
LabelDown = 12,
}Expand description
指标形状
Variants§
Unknown = 0
未知
Xcross = 1
X 形十字
Cross = 2
十字
Circle = 3
圆形
TriangleUp = 4
上三角
TriangleDown = 5
下三角
Flag = 6
旗帜
ArrowUp = 7
上箭头
ArrowDown = 8
下箭头
Square = 9
方块
Diamond = 10
菱形
LabelUp = 11
上标签
LabelDown = 12
下标签
Implementations§
Source§impl IndicatorShape
impl IndicatorShape
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 IndicatorShape
impl Clone for IndicatorShape
Source§fn clone(&self) -> IndicatorShape
fn clone(&self) -> IndicatorShape
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 IndicatorShape
Source§impl Debug for IndicatorShape
impl Debug for IndicatorShape
Source§impl Default for IndicatorShape
impl Default for IndicatorShape
Source§fn default() -> IndicatorShape
fn default() -> IndicatorShape
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IndicatorShape
impl<'de> Deserialize<'de> for IndicatorShape
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IndicatorShape
Source§impl From<IndicatorShape> for i32
impl From<IndicatorShape> for i32
Source§fn from(value: IndicatorShape) -> i32
fn from(value: IndicatorShape) -> i32
Converts to this type from the input type.
Source§impl Hash for IndicatorShape
impl Hash for IndicatorShape
Source§impl Ord for IndicatorShape
impl Ord for IndicatorShape
Source§fn cmp(&self, other: &IndicatorShape) -> Ordering
fn cmp(&self, other: &IndicatorShape) -> 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 IndicatorShape
impl PartialEq for IndicatorShape
Source§fn eq(&self, other: &IndicatorShape) -> bool
fn eq(&self, other: &IndicatorShape) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for IndicatorShape
impl PartialOrd for IndicatorShape
Source§impl Serialize for IndicatorShape
impl Serialize for IndicatorShape
impl StructuralPartialEq for IndicatorShape
Source§impl TryFrom<i32> for IndicatorShape
impl TryFrom<i32> for IndicatorShape
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<IndicatorShape, UnknownEnumValue>
fn try_from(value: i32) -> Result<IndicatorShape, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for IndicatorShape
impl RefUnwindSafe for IndicatorShape
impl Send for IndicatorShape
impl Sync for IndicatorShape
impl Unpin for IndicatorShape
impl UnsafeUnpin for IndicatorShape
impl UnwindSafe for IndicatorShape
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