Struct x11rb_protocol::protocol::xinerama::ScreenInfo
source · pub struct ScreenInfo {
pub x_org: i16,
pub y_org: i16,
pub width: u16,
pub height: u16,
}
Fields§
§x_org: i16
§y_org: i16
§width: u16
§height: u16
Trait Implementations§
source§impl Clone for ScreenInfo
impl Clone for ScreenInfo
source§fn clone(&self) -> ScreenInfo
fn clone(&self) -> ScreenInfo
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 ScreenInfo
impl Debug for ScreenInfo
source§impl Default for ScreenInfo
impl Default for ScreenInfo
source§fn default() -> ScreenInfo
fn default() -> ScreenInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ScreenInfo
impl<'de> Deserialize<'de> for ScreenInfo
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 ScreenInfo
impl Hash for ScreenInfo
source§impl Ord for ScreenInfo
impl Ord for ScreenInfo
source§fn cmp(&self, other: &ScreenInfo) -> Ordering
fn cmp(&self, other: &ScreenInfo) -> 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 ScreenInfo
impl PartialEq for ScreenInfo
source§fn eq(&self, other: &ScreenInfo) -> bool
fn eq(&self, other: &ScreenInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ScreenInfo
impl PartialOrd for ScreenInfo
source§fn partial_cmp(&self, other: &ScreenInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &ScreenInfo) -> 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 ScreenInfo
impl Serialize for ScreenInfo
source§impl Serialize for ScreenInfo
impl Serialize for ScreenInfo
source§impl TryParse for ScreenInfo
impl TryParse for ScreenInfo
impl Copy for ScreenInfo
impl Eq for ScreenInfo
impl StructuralPartialEq for ScreenInfo
Auto Trait Implementations§
impl Freeze for ScreenInfo
impl RefUnwindSafe for ScreenInfo
impl Send for ScreenInfo
impl Sync for ScreenInfo
impl Unpin for ScreenInfo
impl UnwindSafe for ScreenInfo
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<RawFdContainer>
) -> Result<(T, &'a [u8]), ParseError>
fn try_parse_fd<'a>( value: &'a [u8], _: &mut Vec<RawFdContainer> ) -> Result<(T, &'a [u8]), ParseError>
Try to parse the given values into an instance of this type. Read more