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

Trait Implementations

impl Debug for CrushRuleMask
[src]

Formats the value using the given formatter.

impl Clone for CrushRuleMask
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for CrushRuleMask
[src]

impl PartialEq for CrushRuleMask
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Decodable for CrushRuleMask
[src]

Deserialize a value using a Decoder.

impl Encodable for CrushRuleMask
[src]

Serialize a value using an Encoder.