pub struct BitDistributorOutputType { /* private fields */ }Expand description
This struct is used to configure BitDistributors.
See the BitDistributor documentation for more.
Implementations§
Source§impl BitDistributorOutputType
impl BitDistributorOutputType
Sourcepub const fn normal(weight: usize) -> Self
pub const fn normal(weight: usize) -> Self
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() -> Self
pub const fn tiny() -> Self
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 duplicate 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§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