#[repr(transparent)]pub struct ArithOp(pub u8);Tuple Fields§
§0: u8Implementations§
Source§impl ArithOp
impl ArithOp
pub const add: Self
pub const sub: Self
pub const mul: Self
pub const div: Self
pub const ENUM_MIN: u8 = 0
pub const ENUM_MAX: u8 = 3
pub const ENUM_VALUES: &'static [Self]
Sourcepub fn variant_name(self) -> Option<&'static str>
pub fn variant_name(self) -> Option<&'static str>
Returns the variant’s name or “” if unknown.
Trait Implementations§
Source§impl EndianScalar for ArithOp
impl EndianScalar for ArithOp
Source§impl Ord for ArithOp
impl Ord for ArithOp
Source§impl PartialOrd for ArithOp
impl PartialOrd for ArithOp
Source§impl<'a> Verifiable for ArithOp
impl<'a> Verifiable for ArithOp
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl Copy for ArithOp
impl Eq for ArithOp
impl SimpleToVerifyInSlice for ArithOp
impl StructuralPartialEq for ArithOp
Auto Trait Implementations§
impl Freeze for ArithOp
impl RefUnwindSafe for ArithOp
impl Send for ArithOp
impl Sync for ArithOp
impl Unpin for ArithOp
impl UnsafeUnpin for ArithOp
impl UnwindSafe for ArithOp
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