Struct crushtool::CrushBucketUniform
[−]
[src]
pub struct CrushBucketUniform { pub bucket: Bucket, pub item_weight: u32, }
All items are equally weighted.
Fields
bucket: Bucket
item_weight: u32
16-bit fixed point; all items equally weighted
Trait Implementations
impl Debug for CrushBucketUniform
[src]
impl Clone for CrushBucketUniform
[src]
fn clone(&self) -> CrushBucketUniform
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for CrushBucketUniform
[src]
impl Hash for CrushBucketUniform
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl PartialEq for CrushBucketUniform
[src]
fn eq(&self, __arg_0: &CrushBucketUniform) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CrushBucketUniform) -> bool
This method tests for !=
.
impl Encodable for CrushBucketUniform
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder
.
impl Decodable for CrushBucketUniform
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D)
-> Result<CrushBucketUniform, __D::Error>
-> Result<CrushBucketUniform, __D::Error>
Deserialize a value using a Decoder
.