Struct x11rb_protocol::protocol::xproto::ListInstalledColormapsReply
source · [−]pub struct ListInstalledColormapsReply {
pub sequence: u16,
pub length: u32,
pub cmaps: Vec<Colormap>,
}
Fields
sequence: u16
length: u32
cmaps: Vec<Colormap>
Implementations
sourceimpl ListInstalledColormapsReply
impl ListInstalledColormapsReply
sourcepub fn cmaps_len(&self) -> u16
pub fn cmaps_len(&self) -> u16
Get the value of the cmaps_len
field.
The cmaps_len
field is used as the length field of the cmaps
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
sourceimpl Clone for ListInstalledColormapsReply
impl Clone for ListInstalledColormapsReply
sourcefn clone(&self) -> ListInstalledColormapsReply
fn clone(&self) -> ListInstalledColormapsReply
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ListInstalledColormapsReply
impl Debug for ListInstalledColormapsReply
sourceimpl Default for ListInstalledColormapsReply
impl Default for ListInstalledColormapsReply
sourcefn default() -> ListInstalledColormapsReply
fn default() -> ListInstalledColormapsReply
Returns the “default value” for a type. Read more
sourceimpl From<ListInstalledColormapsReply> for Reply
impl From<ListInstalledColormapsReply> for Reply
sourcefn from(reply: ListInstalledColormapsReply) -> Reply
fn from(reply: ListInstalledColormapsReply) -> Reply
Converts to this type from the input type.
sourceimpl Hash for ListInstalledColormapsReply
impl Hash for ListInstalledColormapsReply
sourceimpl Ord for ListInstalledColormapsReply
impl Ord for ListInstalledColormapsReply
sourceimpl PartialEq<ListInstalledColormapsReply> for ListInstalledColormapsReply
impl PartialEq<ListInstalledColormapsReply> for ListInstalledColormapsReply
sourcefn eq(&self, other: &ListInstalledColormapsReply) -> bool
fn eq(&self, other: &ListInstalledColormapsReply) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ListInstalledColormapsReply) -> bool
fn ne(&self, other: &ListInstalledColormapsReply) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ListInstalledColormapsReply> for ListInstalledColormapsReply
impl PartialOrd<ListInstalledColormapsReply> for ListInstalledColormapsReply
sourcefn partial_cmp(&self, other: &ListInstalledColormapsReply) -> Option<Ordering>
fn partial_cmp(&self, other: &ListInstalledColormapsReply) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Eq for ListInstalledColormapsReply
impl StructuralEq for ListInstalledColormapsReply
impl StructuralPartialEq for ListInstalledColormapsReply
Auto Trait Implementations
impl RefUnwindSafe for ListInstalledColormapsReply
impl Send for ListInstalledColormapsReply
impl Sync for ListInstalledColormapsReply
impl Unpin for ListInstalledColormapsReply
impl UnwindSafe for ListInstalledColormapsReply
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more