Struct crushtool::CrushRuleMask
[−]
[src]
pub struct CrushRuleMask { pub ruleset: u8, pub rule_type: RuleType, pub min_size: u8, pub max_size: u8, }
The rule mask is used to describe what the rule is intended for. Given a ruleset and size of output set, we search through the rule list for a matching rule_mask.
Fields
ruleset: u8
rule_type: RuleType
min_size: u8
max_size: u8
Trait Implementations
impl Debug for CrushRuleMask
[src]
impl Clone for CrushRuleMask
[src]
fn clone(&self) -> CrushRuleMask
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 CrushRuleMask
[src]
impl PartialEq for CrushRuleMask
[src]
fn eq(&self, __arg_0: &CrushRuleMask) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CrushRuleMask) -> bool
This method tests for !=
.
impl Decodable for CrushRuleMask
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<CrushRuleMask, __D::Error>
Deserialize a value using a Decoder
.