pub struct MachineOpCounts {
pub adds: usize,
pub compares: usize,
pub muls: usize,
}Fields§
§adds: usize§compares: usize§muls: usizeImplementations§
Source§impl MachineOpCounts
impl MachineOpCounts
pub fn total(&self) -> usize
pub fn add_assign(&mut self, other: Self)
Trait Implementations§
Source§impl Clone for MachineOpCounts
impl Clone for MachineOpCounts
Source§fn clone(&self) -> MachineOpCounts
fn clone(&self) -> MachineOpCounts
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 moreimpl Copy for MachineOpCounts
Source§impl Debug for MachineOpCounts
impl Debug for MachineOpCounts
Source§impl Default for MachineOpCounts
impl Default for MachineOpCounts
Source§fn default() -> MachineOpCounts
fn default() -> MachineOpCounts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MachineOpCounts
impl<'de> Deserialize<'de> for MachineOpCounts
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MachineOpCounts
Source§impl PartialEq for MachineOpCounts
impl PartialEq for MachineOpCounts
Source§fn eq(&self, other: &MachineOpCounts) -> bool
fn eq(&self, other: &MachineOpCounts) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MachineOpCounts
impl Serialize for MachineOpCounts
impl StructuralPartialEq for MachineOpCounts
Auto Trait Implementations§
impl Freeze for MachineOpCounts
impl RefUnwindSafe for MachineOpCounts
impl Send for MachineOpCounts
impl Sync for MachineOpCounts
impl Unpin for MachineOpCounts
impl UnsafeUnpin for MachineOpCounts
impl UnwindSafe for MachineOpCounts
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