[−][src]Struct thirtyfour::common::types::OptionRect
Fields
x: Option<i32>
y: Option<i32>
width: Option<i32>
height: Option<i32>
Implementations
impl OptionRect
[src]
pub fn new() -> Self
[src]
pub fn with_x(self, value: i32) -> Self
[src]
pub fn with_y(self, value: i32) -> Self
[src]
pub fn with_width(self, value: i32) -> Self
[src]
pub fn with_height(self, value: i32) -> Self
[src]
pub fn with_pos(self, x: i32, y: i32) -> Self
[src]
pub fn with_size(self, width: i32, height: i32) -> Self
[src]
Trait Implementations
impl Clone for OptionRect
[src]
fn clone(&self) -> OptionRect
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for OptionRect
[src]
impl Default for OptionRect
[src]
fn default() -> OptionRect
[src]
impl From<Rect> for OptionRect
[src]
impl Serialize for OptionRect
[src]
Auto Trait Implementations
impl RefUnwindSafe for OptionRect
impl Send for OptionRect
impl Sync for OptionRect
impl Unpin for OptionRect
impl UnwindSafe for OptionRect
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,