Enum google_api_proto::google::monitoring::dashboard::v1::text::text_style::PointerLocation
source · #[repr(i32)]pub enum PointerLocation {
Show 13 variants
Unspecified = 0,
PlTop = 1,
PlRight = 2,
PlBottom = 3,
PlLeft = 4,
PlTopLeft = 5,
PlTopRight = 6,
PlRightTop = 7,
PlRightBottom = 8,
PlBottomRight = 9,
PlBottomLeft = 10,
PlLeftBottom = 11,
PlLeftTop = 12,
}
Expand description
Specifies where a visual pointer is placed on a text widget (also sometimes called a “tail”)
Variants§
Unspecified = 0
No visual pointer
PlTop = 1
Placed in the middle of the top of the widget
PlRight = 2
Placed in the middle of the right side of the widget
PlBottom = 3
Placed in the middle of the bottom of the widget
PlLeft = 4
Placed in the middle of the left side of the widget
PlTopLeft = 5
Placed on the left side of the top of the widget
PlTopRight = 6
Placed on the right side of the top of the widget
PlRightTop = 7
Placed on the top of the right side of the widget
PlRightBottom = 8
Placed on the bottom of the right side of the widget
PlBottomRight = 9
Placed on the right side of the bottom of the widget
PlBottomLeft = 10
Placed on the left side of the bottom of the widget
PlLeftBottom = 11
Placed on the bottom of the left side of the widget
PlLeftTop = 12
Placed on the top of the left side of the widget
Implementations§
source§impl PointerLocation
impl PointerLocation
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 PointerLocation
impl Clone for PointerLocation
source§fn clone(&self) -> PointerLocation
fn clone(&self) -> PointerLocation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PointerLocation
impl Debug for PointerLocation
source§impl Default for PointerLocation
impl Default for PointerLocation
source§fn default() -> PointerLocation
fn default() -> PointerLocation
source§impl From<PointerLocation> for i32
impl From<PointerLocation> for i32
source§fn from(value: PointerLocation) -> i32
fn from(value: PointerLocation) -> i32
source§impl Hash for PointerLocation
impl Hash for PointerLocation
source§impl Ord for PointerLocation
impl Ord for PointerLocation
source§fn cmp(&self, other: &PointerLocation) -> Ordering
fn cmp(&self, other: &PointerLocation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PointerLocation
impl PartialEq for PointerLocation
source§fn eq(&self, other: &PointerLocation) -> bool
fn eq(&self, other: &PointerLocation) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PointerLocation
impl PartialOrd for PointerLocation
source§fn partial_cmp(&self, other: &PointerLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &PointerLocation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for PointerLocation
impl TryFrom<i32> for PointerLocation
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PointerLocation, UnknownEnumValue>
fn try_from(value: i32) -> Result<PointerLocation, UnknownEnumValue>
impl Copy for PointerLocation
impl Eq for PointerLocation
impl StructuralPartialEq for PointerLocation
Auto Trait Implementations§
impl Freeze for PointerLocation
impl RefUnwindSafe for PointerLocation
impl Send for PointerLocation
impl Sync for PointerLocation
impl Unpin for PointerLocation
impl UnwindSafe for PointerLocation
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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
§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
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request