[][src]Struct breadx::auto::xf86vidmode::Permission

#[repr(transparent)]pub struct Permission {
    pub inner: u32,
}

Fields

inner: u32

Implementations

impl Permission[src]

pub fn read(&self) -> bool[src]

pub fn set_read(&mut self, val: bool) -> &mut Self[src]

pub fn write(&self) -> bool[src]

pub fn set_write(&mut self, val: bool) -> &mut Self[src]

pub fn new(read: bool, write: bool) -> Self[src]

pub fn count_ones(&self) -> usize[src]

Trait Implementations

impl AsByteSequence for Permission[src]

impl BitAnd<Permission> for Permission[src]

type Output = Permission

The resulting type after applying the & operator.

impl Clone for Permission[src]

impl Copy for Permission[src]

impl Debug for Permission[src]

impl Default for Permission[src]

impl Eq for Permission[src]

impl Not for Permission[src]

type Output = Permission

The resulting type after applying the ! operator.

impl Ord for Permission[src]

impl PartialEq<Permission> for Permission[src]

impl PartialOrd<Permission> for Permission[src]

impl StructuralEq for Permission[src]

impl StructuralPartialEq for Permission[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.