[−][src]Struct guion::layout::size::Size
Size +/+= Border
Fields
x: SizeAxis
y: SizeAxis
Methods
impl Size
[src]
pub const fn fixed(w: u32, h: u32) -> Self
[src]
pub fn add(&mut self, o: &Self, dir: Orientation)
[src]
pub fn add_x(&mut self, o: &Self)
[src]
pub fn add_y(&mut self, o: &Self)
[src]
pub const fn empty() -> Self
[src]
pub fn flip(&mut self)
[src]
pub fn par(&self, dir: Orientation) -> &SizeAxis
[src]
pub fn unpar(&self, dir: Orientation) -> &SizeAxis
[src]
pub fn from_parallel(par: SizeAxis, unpar: SizeAxis, dir: Orientation) -> Self
[src]
Trait Implementations
impl<'_> Add<&'_ Border> for Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: &Border) -> Self::Output
[src]
impl<'a, '_> Add<&'_ Border> for &'a Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: &Border) -> Self::Output
[src]
impl<'a, '_> Add<&'_ Border> for &'a mut Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: &Border) -> Self::Output
[src]
impl<'_> Add<&'_ mut Border> for Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: &mut Border) -> Self::Output
[src]
impl<'a, '_> Add<&'_ mut Border> for &'a Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: &mut Border) -> Self::Output
[src]
impl<'a, '_> Add<&'_ mut Border> for &'a mut Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: &mut Border) -> Self::Output
[src]
impl Add<Border> for Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: Border) -> Self::Output
[src]
impl<'a> Add<Border> for &'a Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: Border) -> Self::Output
[src]
impl<'a> Add<Border> for &'a mut Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: Border) -> Self::Output
[src]
impl<'_> AddAssign<&'_ Border> for Size
[src]
fn add_assign(&mut self, r: &Border)
[src]
impl<'a, '_> AddAssign<&'_ Border> for &'a mut Size
[src]
fn add_assign(&mut self, r: &Border)
[src]
impl<'_> AddAssign<&'_ mut Border> for Size
[src]
fn add_assign(&mut self, r: &mut Border)
[src]
impl<'a, '_> AddAssign<&'_ mut Border> for &'a mut Size
[src]
fn add_assign(&mut self, r: &mut Border)
[src]
impl AddAssign<Border> for Size
[src]
fn add_assign(&mut self, r: Border)
[src]
impl<'a> AddAssign<Border> for &'a mut Size
[src]
fn add_assign(&mut self, r: Border)
[src]
impl Clone for Size
[src]
impl ISize for Size
[src]
fn add_x(&mut self, o: &Self)
[src]
fn add_y(&mut self, o: &Self)
[src]
fn flip(&mut self)
[src]
fn as_std(&self) -> Size
[src]
fn empty() -> Self where
Self: Sized,
[src]
Self: Sized,
fn add(&mut self, o: &Self, dir: Orientation)
[src]
impl Index<Orientation> for Size
[src]
Auto Trait Implementations
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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>,