Struct x11rb_protocol::protocol::render::Directformat
source · pub struct Directformat {
pub red_shift: u16,
pub red_mask: u16,
pub green_shift: u16,
pub green_mask: u16,
pub blue_shift: u16,
pub blue_mask: u16,
pub alpha_shift: u16,
pub alpha_mask: u16,
}
Fields§
§red_shift: u16
§red_mask: u16
§green_shift: u16
§green_mask: u16
§blue_shift: u16
§blue_mask: u16
§alpha_shift: u16
§alpha_mask: u16
Trait Implementations§
source§impl Clone for Directformat
impl Clone for Directformat
source§fn clone(&self) -> Directformat
fn clone(&self) -> Directformat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Directformat
impl Debug for Directformat
source§impl Default for Directformat
impl Default for Directformat
source§fn default() -> Directformat
fn default() -> Directformat
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Directformat
impl<'de> Deserialize<'de> for Directformat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for Directformat
impl Hash for Directformat
source§impl Ord for Directformat
impl Ord for Directformat
source§fn cmp(&self, other: &Directformat) -> Ordering
fn cmp(&self, other: &Directformat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Directformat
impl PartialEq for Directformat
source§fn eq(&self, other: &Directformat) -> bool
fn eq(&self, other: &Directformat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Directformat
impl PartialOrd for Directformat
source§fn partial_cmp(&self, other: &Directformat) -> Option<Ordering>
fn partial_cmp(&self, other: &Directformat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Directformat
impl Serialize for Directformat
source§impl Serialize for Directformat
impl Serialize for Directformat
source§impl TryParse for Directformat
impl TryParse for Directformat
impl Copy for Directformat
impl Eq for Directformat
impl StructuralPartialEq for Directformat
Auto Trait Implementations§
impl Freeze for Directformat
impl RefUnwindSafe for Directformat
impl Send for Directformat
impl Sync for Directformat
impl Unpin for Directformat
impl UnwindSafe for Directformat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> TryParseFd for Twhere
T: TryParse,
impl<T> TryParseFd for Twhere
T: TryParse,
source§fn try_parse_fd<'a>(
value: &'a [u8],
_: &mut Vec<OwnedFd>
) -> Result<(T, &'a [u8]), ParseError>
fn try_parse_fd<'a>( value: &'a [u8], _: &mut Vec<OwnedFd> ) -> Result<(T, &'a [u8]), ParseError>
Try to parse the given values into an instance of this type. Read more