[][src]Type Definition abi_stable::prefix_type::FieldConditionality

type FieldConditionality = BoolArray<IsConditional>;

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.

Methods

impl FieldConditionality[src]

pub const fn is_conditional(self, index: usize) -> bool[src]

Queries whether the field at the index position is conditional.

pub const fn set_conditionality(self, index: usize, cond: IsConditional) -> Self[src]

Sets the conditionality of a field based on cond, on IsConditional::Yes the field becomes conditional, on IsConditional::No the field becomes unconditional.