Struct xcb::DisplayInfo
source · pub struct DisplayInfo {
pub host: String,
pub display: i32,
pub screen: i32,
}
Expand description
Display info returned by parse_display
Fields§
§host: String
The hostname
display: i32
The display number
screen: i32
The screen number
Trait Implementations§
source§impl Clone for DisplayInfo
impl Clone for DisplayInfo
source§fn clone(&self) -> DisplayInfo
fn clone(&self) -> DisplayInfo
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 DisplayInfo
impl Debug for DisplayInfo
source§impl Hash for DisplayInfo
impl Hash for DisplayInfo
source§impl Ord for DisplayInfo
impl Ord for DisplayInfo
source§fn cmp(&self, other: &DisplayInfo) -> Ordering
fn cmp(&self, other: &DisplayInfo) -> 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 DisplayInfo
impl PartialEq for DisplayInfo
source§fn eq(&self, other: &DisplayInfo) -> bool
fn eq(&self, other: &DisplayInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DisplayInfo
impl PartialOrd for DisplayInfo
source§fn partial_cmp(&self, other: &DisplayInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &DisplayInfo) -> 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 moreimpl Eq for DisplayInfo
impl StructuralPartialEq for DisplayInfo
Auto Trait Implementations§
impl Freeze for DisplayInfo
impl RefUnwindSafe for DisplayInfo
impl Send for DisplayInfo
impl Sync for DisplayInfo
impl Unpin for DisplayInfo
impl UnwindSafe for DisplayInfo
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