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

type FieldAccessibility = BoolArray<IsAccessible>;

An array with whether the ith field of a prefix-type is accessible through its accessor method.

Methods

impl FieldAccessibility[src]

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

Queries whether the field at the index position is accessible.

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

Sets the accessibility of a field based on cond, on IsAccessible::Yes the field becomes accessible, on IsAccessible::No the field becomes inaccessible.