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
impl Copy for BitDistributorOutputType
impl Eq for BitDistributorOutputType
impl StructuralPartialEq for BitDistributorOutputType
Auto Trait Implementations§
impl Freeze for BitDistributorOutputType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more