Struct leftwm_core::models::XyhwBuilder
source · [−]pub struct XyhwBuilder {
pub x: i32,
pub y: i32,
pub h: i32,
pub w: i32,
pub minw: i32,
pub maxw: i32,
pub minh: i32,
pub maxh: i32,
}Expand description
Modifiable struct that can be used to generate an Xyhw struct. Contains min/max width and height and window placement. x,y from top left.
Fields
x: i32y: i32h: i32w: i32minw: i32maxw: i32minh: i32maxh: i32Trait Implementations
sourceimpl Clone for XyhwBuilder
impl Clone for XyhwBuilder
sourcefn clone(&self) -> XyhwBuilder
fn clone(&self) -> XyhwBuilder
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 XyhwBuilder
impl Debug for XyhwBuilder
sourceimpl Default for XyhwBuilder
impl Default for XyhwBuilder
sourceimpl<'de> Deserialize<'de> for XyhwBuilder
impl<'de> Deserialize<'de> for XyhwBuilder
sourcefn 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
sourceimpl From<XyhwBuilder> for Xyhw
impl From<XyhwBuilder> for Xyhw
sourcefn from(xywh: XyhwBuilder) -> Self
fn from(xywh: XyhwBuilder) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<XyhwBuilder> for XyhwBuilder
impl PartialEq<XyhwBuilder> for XyhwBuilder
sourcefn eq(&self, other: &XyhwBuilder) -> bool
fn eq(&self, other: &XyhwBuilder) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &XyhwBuilder) -> bool
fn ne(&self, other: &XyhwBuilder) -> bool
This method tests for !=.
sourceimpl Serialize for XyhwBuilder
impl Serialize for XyhwBuilder
impl Copy for XyhwBuilder
impl StructuralPartialEq for XyhwBuilder
Auto Trait Implementations
impl RefUnwindSafe for XyhwBuilder
impl Send for XyhwBuilder
impl Sync for XyhwBuilder
impl Unpin for XyhwBuilder
impl UnwindSafe for XyhwBuilder
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more