#[repr(i32)]pub enum ScatterMode {
ScatterUpdate = 0,
ScatterAdd = 1,
ScatterSub = 2,
ScatterMul = 3,
ScatterDiv = 4,
ScatterMax = 5,
ScatterMin = 6,
}Expand description
Scatter accumulation mode.
Variants§
ScatterUpdate = 0
ScatterAdd = 1
add
ScatterSub = 2
subtract
ScatterMul = 3
multiply
ScatterDiv = 4
divide
ScatterMax = 5
maximum
ScatterMin = 6
minimum
Implementations§
Source§impl ScatterMode
impl ScatterMode
Source§impl ScatterMode
impl ScatterMode
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 ScatterMode
impl Clone for ScatterMode
Source§fn clone(&self) -> ScatterMode
fn clone(&self) -> ScatterMode
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 moreSource§impl Debug for ScatterMode
impl Debug for ScatterMode
Source§impl Default for ScatterMode
impl Default for ScatterMode
Source§fn default() -> ScatterMode
fn default() -> ScatterMode
Returns the “default value” for a type. Read more
Source§impl From<ScatterMode> for i32
impl From<ScatterMode> for i32
Source§fn from(value: ScatterMode) -> i32
fn from(value: ScatterMode) -> i32
Converts to this type from the input type.
Source§impl Hash for ScatterMode
impl Hash for ScatterMode
Source§impl Ord for ScatterMode
impl Ord for ScatterMode
Source§fn cmp(&self, other: &ScatterMode) -> Ordering
fn cmp(&self, other: &ScatterMode) -> 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 ScatterMode
impl PartialEq for ScatterMode
Source§fn eq(&self, other: &ScatterMode) -> bool
fn eq(&self, other: &ScatterMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ScatterMode
impl PartialOrd for ScatterMode
Source§impl TryFrom<i32> for ScatterMode
impl TryFrom<i32> for ScatterMode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ScatterMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<ScatterMode, UnknownEnumValue>
Performs the conversion.
impl Copy for ScatterMode
impl Eq for ScatterMode
impl StructuralPartialEq for ScatterMode
Auto Trait Implementations§
impl Freeze for ScatterMode
impl RefUnwindSafe for ScatterMode
impl Send for ScatterMode
impl Sync for ScatterMode
impl Unpin for ScatterMode
impl UnsafeUnpin for ScatterMode
impl UnwindSafe for ScatterMode
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