/// Create a new permission value for an index, the value equals 2 to the power of the index.
/// Max allowed index is 31, otherwise [`None`] will be returned.
Create a new permission value for an index, the value equals 2 to the power of the index.
Max allowed index is 31, otherwise [`None`] will be returned.
Create a new permission value for an index the value equals 2 to the power of the index . Max allowed index is 31 otherwise [ ` None ` ] will be returned .
pub fn new(index: u8) -> Option<Self> {
        if index < 32 {
            let value = 1u32 << index;
            Some(PermissionValue(value))
        } else {
            None
        }
    }
pub fn new ( index : u8 ) -> Option < Self > { if index < 32 { let value = 1u32 << index ; Some ( PermissionValue ( value ) ) } else { None } }
Create a new permission value for an index, the value equals 2 to the power of the index.
Create a new permission value for an index the value equals 2 to the power of the index .
index
u8