pub struct BitDistributorOutputType { /* private fields */ }
Expand description
This struct is used to configure BitDistributor
s.
See the BitDistributor
documentation for more.
Implementations§
source§impl 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§
source§impl Clone for BitDistributorOutputType
impl Clone for BitDistributorOutputType
source§fn clone(&self) -> BitDistributorOutputType
fn clone(&self) -> BitDistributorOutputType
Returns a copy of the value. Read more
1.0.0 · 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 BitDistributorOutputType
impl Debug for BitDistributorOutputType
source§impl Hash for BitDistributorOutputType
impl Hash for BitDistributorOutputType
source§impl PartialEq for BitDistributorOutputType
impl PartialEq for BitDistributorOutputType
source§fn 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 ==
.impl Copy for BitDistributorOutputType
impl Eq 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§
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