Struct x11rb::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 Serialize for Directformat
impl Serialize for Directformat
source§impl TryParse for Directformat
impl TryParse for Directformat
source§fn try_parse(remaining: &[u8]) -> Result<(Directformat, &[u8]), ParseError>
fn try_parse(remaining: &[u8]) -> Result<(Directformat, &[u8]), ParseError>
Try to parse the given values into an instance of this type. Read more
impl Copy 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