pub struct MomentData { /* private fields */ }Expand description
Moment data from a radial for a particular product where each value corresponds to a gate.
Implementations§
Source§impl MomentData
impl MomentData
Sourcepub fn from_fixed_point(scale: f32, offset: f32, values: Vec<u8>) -> Self
pub fn from_fixed_point(scale: f32, offset: f32, values: Vec<u8>) -> Self
Create new moment data from fixed-point encoding.
Sourcepub fn values(&self) -> Vec<MomentValue>
pub fn values(&self) -> Vec<MomentValue>
Values from this data moment corresponding to gates in the radial.
Trait Implementations§
Source§impl Clone for MomentData
impl Clone for MomentData
Source§fn clone(&self) -> MomentData
fn clone(&self) -> MomentData
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 MomentData
impl Debug for MomentData
Source§impl PartialEq for MomentData
impl PartialEq for MomentData
impl StructuralPartialEq for MomentData
Auto Trait Implementations§
impl Freeze for MomentData
impl RefUnwindSafe for MomentData
impl Send for MomentData
impl Sync for MomentData
impl Unpin for MomentData
impl UnsafeUnpin for MomentData
impl UnwindSafe for MomentData
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