Struct QueryPictFormatsReply
pub struct QueryPictFormatsReply {
pub sequence: u16,
pub length: u32,
pub num_depths: u32,
pub num_visuals: u32,
pub formats: Vec<Pictforminfo>,
pub screens: Vec<Pictscreen>,
pub subpixels: Vec<SubPixel>,
}
Fields§
§sequence: u16
§length: u32
§num_depths: u32
§num_visuals: u32
§formats: Vec<Pictforminfo>
§screens: Vec<Pictscreen>
§subpixels: Vec<SubPixel>
Implementations§
§impl QueryPictFormatsReply
impl QueryPictFormatsReply
pub fn num_formats(&self) -> u32
pub fn num_formats(&self) -> u32
Get the value of the num_formats
field.
The num_formats
field is used as the length field of the formats
field.
This function computes the field’s value again based on the length of the list.
§Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
pub fn num_screens(&self) -> u32
pub fn num_screens(&self) -> u32
Get the value of the num_screens
field.
The num_screens
field is used as the length field of the screens
field.
This function computes the field’s value again based on the length of the list.
§Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
pub fn num_subpixel(&self) -> u32
pub fn num_subpixel(&self) -> u32
Get the value of the num_subpixel
field.
The num_subpixel
field is used as the length field of the subpixels
field.
This function computes the field’s value again based on the length of the list.
§Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
Trait Implementations§
§impl Clone for QueryPictFormatsReply
impl Clone for QueryPictFormatsReply
§fn clone(&self) -> QueryPictFormatsReply
fn clone(&self) -> QueryPictFormatsReply
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for QueryPictFormatsReply
impl Debug for QueryPictFormatsReply
§impl Default for QueryPictFormatsReply
impl Default for QueryPictFormatsReply
§fn default() -> QueryPictFormatsReply
fn default() -> QueryPictFormatsReply
§impl From<QueryPictFormatsReply> for Reply
impl From<QueryPictFormatsReply> for Reply
§fn from(reply: QueryPictFormatsReply) -> Reply
fn from(reply: QueryPictFormatsReply) -> Reply
§impl Serialize for QueryPictFormatsReply
impl Serialize for QueryPictFormatsReply
§impl TryParse for QueryPictFormatsReply
impl TryParse for QueryPictFormatsReply
§fn try_parse(
initial_value: &[u8],
) -> Result<(QueryPictFormatsReply, &[u8]), ParseError>
fn try_parse( initial_value: &[u8], ) -> Result<(QueryPictFormatsReply, &[u8]), ParseError>
Auto Trait Implementations§
impl Freeze for QueryPictFormatsReply
impl RefUnwindSafe for QueryPictFormatsReply
impl Send for QueryPictFormatsReply
impl Sync for QueryPictFormatsReply
impl Unpin for QueryPictFormatsReply
impl UnwindSafe for QueryPictFormatsReply
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)