pub enum Operation {
ADD = 1,
SUBTRACT = 2,
MULTIPLY = 3,
DIVIDE = 4,
}
Expand description
You can define enums, which are just 32 bit integers. Values are optional and start at 1 if not supplied, C style again.
Variants§
Implementations§
Source§impl Operation
impl Operation
pub fn write_to_out_protocol( &self, o_prot: &mut dyn TOutputProtocol, ) -> Result<()>
pub fn read_from_in_protocol( i_prot: &mut dyn TInputProtocol, ) -> Result<Operation>
Trait Implementations§
Source§impl Ord for Operation
impl Ord for Operation
Source§impl PartialOrd for Operation
impl PartialOrd for Operation
impl Copy for Operation
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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