Type Definition abi_stable::prefix_type::FieldConditionality [−][src]
pub type FieldConditionality = BoolArray<IsConditional>;
Expand description
An array with whether the ith field in the prefix of a prefix-type
is conditional,which means whether it has the
#[sabi(accessible_if=" expression ")]
attribute applied to it.
Implementations
Queries whether the field at the index
position is conditional.
Sets the conditionality of a field based on cond
,
on IsConditional::Yes the field becomes conditional,
on IsConditional::No the field becomes unconditional.