[−][src]Struct breadx::auto::xproto::ColorFlag
Fields
inner: u8
Implementations
impl ColorFlag
[src]
pub fn red(&self) -> bool
[src]
pub fn set_red(&mut self, val: bool) -> &mut Self
[src]
pub fn green(&self) -> bool
[src]
pub fn set_green(&mut self, val: bool) -> &mut Self
[src]
pub fn blue(&self) -> bool
[src]
pub fn set_blue(&mut self, val: bool) -> &mut Self
[src]
pub fn new(red: bool, green: bool, blue: bool) -> Self
[src]
pub fn count_ones(&self) -> usize
[src]
Trait Implementations
impl AsByteSequence for ColorFlag
[src]
pub fn as_bytes(&self, bytes: &mut [u8]) -> usize
[src]
pub fn from_bytes(bytes: &[u8]) -> Option<(Self, usize)>
[src]
pub fn size(&self) -> usize
[src]
pub fn file_descriptors(&mut self) -> Option<&mut Vec<Fd>>
[src]
impl BitAnd<ColorFlag> for ColorFlag
[src]
type Output = ColorFlag
The resulting type after applying the &
operator.
pub fn bitand(self, rhs: ColorFlag) -> ColorFlag
[src]
impl Clone for ColorFlag
[src]
impl Copy for ColorFlag
[src]
impl Debug for ColorFlag
[src]
impl Default for ColorFlag
[src]
impl Eq for ColorFlag
[src]
impl Not for ColorFlag
[src]
type Output = ColorFlag
The resulting type after applying the !
operator.
pub fn not(self) -> ColorFlag
[src]
impl Ord for ColorFlag
[src]
pub fn cmp(&self, other: &ColorFlag) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<ColorFlag> for ColorFlag
[src]
impl PartialOrd<ColorFlag> for ColorFlag
[src]
pub fn partial_cmp(&self, other: &ColorFlag) -> Option<Ordering>
[src]
pub fn lt(&self, other: &ColorFlag) -> bool
[src]
pub fn le(&self, other: &ColorFlag) -> bool
[src]
pub fn gt(&self, other: &ColorFlag) -> bool
[src]
pub fn ge(&self, other: &ColorFlag) -> bool
[src]
impl StructuralEq for ColorFlag
[src]
impl StructuralPartialEq for ColorFlag
[src]
Auto Trait Implementations
impl RefUnwindSafe for ColorFlag
[src]
impl Send for ColorFlag
[src]
impl Sync for ColorFlag
[src]
impl Unpin for ColorFlag
[src]
impl UnwindSafe for ColorFlag
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,