Struct concrete::RadixParameters
source · [−]pub struct RadixParameters {
pub block_parameters: Parameters,
pub num_block: usize,
pub wopbs_block_parameters: Parameters,
}
Available on crate feature
integers
only.Expand description
Parameters for ‘radix’ decomposition
Radix decomposition works by using multiple shortint blocks with the same parameters to represent an integer.
For example, by taking 4 blocks with parameters for 2bits shortints, with have a 4 * 2 = 8 bit integer.
Fields
block_parameters: Parameters
num_block: usize
wopbs_block_parameters: Parameters
Trait Implementations
sourceimpl Clone for RadixParameters
impl Clone for RadixParameters
sourcefn clone(&self) -> RadixParameters
fn clone(&self) -> RadixParameters
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RadixParameters
impl Debug for RadixParameters
sourceimpl<'de> Deserialize<'de> for RadixParameters
impl<'de> Deserialize<'de> for RadixParameters
sourcefn 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
sourceimpl From<RadixParameters> for DynIntegerParameters
impl From<RadixParameters> for DynIntegerParameters
sourcefn from(radix_params: RadixParameters) -> Self
fn from(radix_params: RadixParameters) -> Self
Converts to this type from the input type.
sourceimpl Serialize for RadixParameters
impl Serialize for RadixParameters
impl Copy for RadixParameters
Auto Trait Implementations
impl RefUnwindSafe for RadixParameters
impl Send for RadixParameters
impl Sync for RadixParameters
impl Unpin for RadixParameters
impl UnwindSafe for RadixParameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more