pub struct BitDistributorOutputType { /* private fields */ }
Expand description
This struct is used to configure BitDistributor
s.
See the BitDistributor
documentation for more.
Implementations
sourceimpl BitDistributorOutputType
impl BitDistributorOutputType
sourcepub fn normal(weight: usize) -> BitDistributorOutputType
pub fn normal(weight: usize) -> BitDistributorOutputType
Creates a normal output with a specified weight.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if weight
is zero.
The corresponding element grows as a power of $i$. See the BitDistributor
documentation
for more.
sourcepub const fn tiny() -> BitDistributorOutputType
pub const fn tiny() -> BitDistributorOutputType
Creates a tiny output.
Worst-case complexity
Constant time and additional memory.
The corresponding element grows logarithmically. See the BitDistributor
documentation
for more.
Trait Implementations
sourceimpl Clone for BitDistributorOutputType
impl Clone for BitDistributorOutputType
sourcefn clone(&self) -> BitDistributorOutputType
fn clone(&self) -> BitDistributorOutputType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BitDistributorOutputType
impl Debug for BitDistributorOutputType
sourceimpl Hash for BitDistributorOutputType
impl Hash for BitDistributorOutputType
sourceimpl PartialEq<BitDistributorOutputType> for BitDistributorOutputType
impl PartialEq<BitDistributorOutputType> for BitDistributorOutputType
sourcefn eq(&self, other: &BitDistributorOutputType) -> bool
fn eq(&self, other: &BitDistributorOutputType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BitDistributorOutputType) -> bool
fn ne(&self, other: &BitDistributorOutputType) -> bool
This method tests for !=
.
impl Copy for BitDistributorOutputType
impl Eq for BitDistributorOutputType
impl StructuralEq for BitDistributorOutputType
impl StructuralPartialEq for BitDistributorOutputType
Auto Trait Implementations
impl RefUnwindSafe for BitDistributorOutputType
impl Send for BitDistributorOutputType
impl Sync for BitDistributorOutputType
impl Unpin for BitDistributorOutputType
impl UnwindSafe for BitDistributorOutputType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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