#[non_exhaustive]#[repr(u8)]pub enum OverflowingBinaryOperatorOptionalFlags {
NoUnsignedWrap = 0,
NoSignedWrap = 1,
}Expand description
Flags for serializing OverflowingBinaryOperator’s SubclassOptionalData contents.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for OverflowingBinaryOperatorOptionalFlags
impl Clone for OverflowingBinaryOperatorOptionalFlags
Source§fn clone(&self) -> OverflowingBinaryOperatorOptionalFlags
fn clone(&self) -> OverflowingBinaryOperatorOptionalFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl TryFrom<u8> for OverflowingBinaryOperatorOptionalFlags
impl TryFrom<u8> for OverflowingBinaryOperatorOptionalFlags
Source§type Error = TryFromPrimitiveError<OverflowingBinaryOperatorOptionalFlags>
type Error = TryFromPrimitiveError<OverflowingBinaryOperatorOptionalFlags>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for OverflowingBinaryOperatorOptionalFlags
impl TryFromPrimitive for OverflowingBinaryOperatorOptionalFlags
const NAME: &'static str = "OverflowingBinaryOperatorOptionalFlags"
type Primitive = u8
type Error = TryFromPrimitiveError<OverflowingBinaryOperatorOptionalFlags>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for OverflowingBinaryOperatorOptionalFlags
Auto Trait Implementations§
impl Freeze for OverflowingBinaryOperatorOptionalFlags
impl RefUnwindSafe for OverflowingBinaryOperatorOptionalFlags
impl Send for OverflowingBinaryOperatorOptionalFlags
impl Sync for OverflowingBinaryOperatorOptionalFlags
impl Unpin for OverflowingBinaryOperatorOptionalFlags
impl UnwindSafe for OverflowingBinaryOperatorOptionalFlags
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