Struct guion::util::bounds::Offset [−][src]
Fields
x: i32
y: i32
Implementations
impl Offset
[src]
pub fn is_inside(&self, b: &Bounds) -> bool
[src]
If the offset is inside the bound b
pub fn par(&self, o: Orientation) -> i32
[src]
pub fn unpar(&self, o: Orientation) -> i32
[src]
pub fn from_ori(par: i32, unpar: i32, o: Orientation) -> Self
[src]
Trait Implementations
impl Add<&'_ Offset> for Bounds
[src]
type Output = Bounds
The resulting type after applying the +
operator.
fn add(self, r: &Offset) -> Self::Output
[src]
impl<'a> Add<&'_ Offset> for &'a Bounds
[src]
type Output = Bounds
The resulting type after applying the +
operator.
fn add(self, r: &Offset) -> Self::Output
[src]
impl<'a> Add<&'_ Offset> for &'a mut Bounds
[src]
type Output = Bounds
The resulting type after applying the +
operator.
fn add(self, r: &Offset) -> Self::Output
[src]
impl Add<&'_ Offset> for Offset
[src]
type Output = Offset
The resulting type after applying the +
operator.
fn add(self, r: &Offset) -> Self::Output
[src]
impl<'a> Add<&'_ Offset> for &'a Offset
[src]
type Output = Offset
The resulting type after applying the +
operator.
fn add(self, r: &Offset) -> Self::Output
[src]
impl<'a> Add<&'_ Offset> for &'a mut Offset
[src]
type Output = Offset
The resulting type after applying the +
operator.
fn add(self, r: &Offset) -> Self::Output
[src]
impl Add<&'_ mut Offset> for Bounds
[src]
type Output = Bounds
The resulting type after applying the +
operator.
fn add(self, r: &mut Offset) -> Self::Output
[src]
impl<'a> Add<&'_ mut Offset> for &'a Bounds
[src]
type Output = Bounds
The resulting type after applying the +
operator.
fn add(self, r: &mut Offset) -> Self::Output
[src]
impl<'a> Add<&'_ mut Offset> for &'a mut Bounds
[src]
type Output = Bounds
The resulting type after applying the +
operator.
fn add(self, r: &mut Offset) -> Self::Output
[src]
impl Add<&'_ mut Offset> for Offset
[src]
type Output = Offset
The resulting type after applying the +
operator.
fn add(self, r: &mut Offset) -> Self::Output
[src]
impl<'a> Add<&'_ mut Offset> for &'a Offset
[src]
type Output = Offset
The resulting type after applying the +
operator.
fn add(self, r: &mut Offset) -> Self::Output
[src]
impl<'a> Add<&'_ mut Offset> for &'a mut Offset
[src]
type Output = Offset
The resulting type after applying the +
operator.
fn add(self, r: &mut Offset) -> Self::Output
[src]
impl Add<Offset> for Bounds
[src]
type Output = Bounds
The resulting type after applying the +
operator.
fn add(self, r: Offset) -> Self::Output
[src]
impl<'a> Add<Offset> for &'a Bounds
[src]
type Output = Bounds
The resulting type after applying the +
operator.
fn add(self, r: Offset) -> Self::Output
[src]
impl<'a> Add<Offset> for &'a mut Bounds
[src]
type Output = Bounds
The resulting type after applying the +
operator.
fn add(self, r: Offset) -> Self::Output
[src]
impl Add<Offset> for Offset
[src]
type Output = Offset
The resulting type after applying the +
operator.
fn add(self, r: Offset) -> Self::Output
[src]
impl<'a> Add<Offset> for &'a Offset
[src]
type Output = Offset
The resulting type after applying the +
operator.
fn add(self, r: Offset) -> Self::Output
[src]
impl<'a> Add<Offset> for &'a mut Offset
[src]
type Output = Offset
The resulting type after applying the +
operator.
fn add(self, r: Offset) -> Self::Output
[src]
impl AddAssign<&'_ Offset> for Bounds
[src]
fn add_assign(&mut self, r: &Offset)
[src]
impl<'a> AddAssign<&'_ Offset> for &'a mut Bounds
[src]
fn add_assign(&mut self, r: &Offset)
[src]
impl AddAssign<&'_ Offset> for Offset
[src]
fn add_assign(&mut self, r: &Offset)
[src]
impl<'a> AddAssign<&'_ Offset> for &'a mut Offset
[src]
fn add_assign(&mut self, r: &Offset)
[src]
impl AddAssign<&'_ mut Offset> for Bounds
[src]
fn add_assign(&mut self, r: &mut Offset)
[src]
impl<'a> AddAssign<&'_ mut Offset> for &'a mut Bounds
[src]
fn add_assign(&mut self, r: &mut Offset)
[src]
impl AddAssign<&'_ mut Offset> for Offset
[src]
fn add_assign(&mut self, r: &mut Offset)
[src]
impl<'a> AddAssign<&'_ mut Offset> for &'a mut Offset
[src]
fn add_assign(&mut self, r: &mut Offset)
[src]
impl AddAssign<Offset> for Bounds
[src]
fn add_assign(&mut self, r: Offset)
[src]
impl<'a> AddAssign<Offset> for &'a mut Bounds
[src]
fn add_assign(&mut self, r: Offset)
[src]
impl AddAssign<Offset> for Offset
[src]
fn add_assign(&mut self, r: Offset)
[src]
impl<'a> AddAssign<Offset> for &'a mut Offset
[src]
fn add_assign(&mut self, r: Offset)
[src]
impl AsRef<Offset> for Offset
[src]
impl Clone for Offset
[src]
impl Copy for Offset
[src]
impl Debug for Offset
[src]
impl Default for Offset
[src]
impl From<(i32, i32)> for Offset
[src]
impl From<(u32, u32)> for Offset
[src]
impl Into<(i32, i32)> for Offset
[src]
impl Sub<&'_ Offset> for Bounds
[src]
type Output = Bounds
The resulting type after applying the -
operator.
fn sub(self, r: &Offset) -> Self::Output
[src]
impl<'a> Sub<&'_ Offset> for &'a Bounds
[src]
type Output = Bounds
The resulting type after applying the -
operator.
fn sub(self, r: &Offset) -> Self::Output
[src]
impl<'a> Sub<&'_ Offset> for &'a mut Bounds
[src]
type Output = Bounds
The resulting type after applying the -
operator.
fn sub(self, r: &Offset) -> Self::Output
[src]
impl Sub<&'_ Offset> for Offset
[src]
type Output = Offset
The resulting type after applying the -
operator.
fn sub(self, r: &Offset) -> Self::Output
[src]
impl<'a> Sub<&'_ Offset> for &'a Offset
[src]
type Output = Offset
The resulting type after applying the -
operator.
fn sub(self, r: &Offset) -> Self::Output
[src]
impl<'a> Sub<&'_ Offset> for &'a mut Offset
[src]
type Output = Offset
The resulting type after applying the -
operator.
fn sub(self, r: &Offset) -> Self::Output
[src]
impl Sub<&'_ mut Offset> for Bounds
[src]
type Output = Bounds
The resulting type after applying the -
operator.
fn sub(self, r: &mut Offset) -> Self::Output
[src]
impl<'a> Sub<&'_ mut Offset> for &'a Bounds
[src]
type Output = Bounds
The resulting type after applying the -
operator.
fn sub(self, r: &mut Offset) -> Self::Output
[src]
impl<'a> Sub<&'_ mut Offset> for &'a mut Bounds
[src]
type Output = Bounds
The resulting type after applying the -
operator.
fn sub(self, r: &mut Offset) -> Self::Output
[src]
impl Sub<&'_ mut Offset> for Offset
[src]
type Output = Offset
The resulting type after applying the -
operator.
fn sub(self, r: &mut Offset) -> Self::Output
[src]
impl<'a> Sub<&'_ mut Offset> for &'a Offset
[src]
type Output = Offset
The resulting type after applying the -
operator.
fn sub(self, r: &mut Offset) -> Self::Output
[src]
impl<'a> Sub<&'_ mut Offset> for &'a mut Offset
[src]
type Output = Offset
The resulting type after applying the -
operator.
fn sub(self, r: &mut Offset) -> Self::Output
[src]
impl Sub<Offset> for Bounds
[src]
type Output = Bounds
The resulting type after applying the -
operator.
fn sub(self, r: Offset) -> Self::Output
[src]
impl<'a> Sub<Offset> for &'a Bounds
[src]
type Output = Bounds
The resulting type after applying the -
operator.
fn sub(self, r: Offset) -> Self::Output
[src]
impl<'a> Sub<Offset> for &'a mut Bounds
[src]
type Output = Bounds
The resulting type after applying the -
operator.
fn sub(self, r: Offset) -> Self::Output
[src]
impl Sub<Offset> for Offset
[src]
type Output = Offset
The resulting type after applying the -
operator.
fn sub(self, r: Offset) -> Self::Output
[src]
impl<'a> Sub<Offset> for &'a Offset
[src]
type Output = Offset
The resulting type after applying the -
operator.
fn sub(self, r: Offset) -> Self::Output
[src]
impl<'a> Sub<Offset> for &'a mut Offset
[src]
type Output = Offset
The resulting type after applying the -
operator.
fn sub(self, r: Offset) -> Self::Output
[src]
impl SubAssign<&'_ Offset> for Bounds
[src]
fn sub_assign(&mut self, r: &Offset)
[src]
impl<'a> SubAssign<&'_ Offset> for &'a mut Bounds
[src]
fn sub_assign(&mut self, r: &Offset)
[src]
impl SubAssign<&'_ Offset> for Offset
[src]
fn sub_assign(&mut self, r: &Offset)
[src]
impl<'a> SubAssign<&'_ Offset> for &'a mut Offset
[src]
fn sub_assign(&mut self, r: &Offset)
[src]
impl SubAssign<&'_ mut Offset> for Bounds
[src]
fn sub_assign(&mut self, r: &mut Offset)
[src]
impl<'a> SubAssign<&'_ mut Offset> for &'a mut Bounds
[src]
fn sub_assign(&mut self, r: &mut Offset)
[src]
impl SubAssign<&'_ mut Offset> for Offset
[src]
fn sub_assign(&mut self, r: &mut Offset)
[src]
impl<'a> SubAssign<&'_ mut Offset> for &'a mut Offset
[src]
fn sub_assign(&mut self, r: &mut Offset)
[src]
impl SubAssign<Offset> for Bounds
[src]
fn sub_assign(&mut self, r: Offset)
[src]
impl<'a> SubAssign<Offset> for &'a mut Bounds
[src]
fn sub_assign(&mut self, r: Offset)
[src]
impl SubAssign<Offset> for Offset
[src]
fn sub_assign(&mut self, r: Offset)
[src]
impl<'a> SubAssign<Offset> for &'a mut Offset
[src]
fn sub_assign(&mut self, r: Offset)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnwindSafe for Offset
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<E, T> AtomState<E, T> for T where
E: Env,
T: Clone,
[src]
E: Env,
T: Clone,
impl<E, T> AtomStateMut<E, T> for T where
E: Env,
T: Clone,
[src]
E: Env,
T: Clone,
pub fn set_direct(&mut Self, T) -> Result<(), ()>
[src]
fn set(&mut self, v: T, _: &mut E::Context)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> FromInto<U> for T where
T: From<U> + Into<U>,
[src]
T: From<U> + Into<U>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'_, S, T, E> StyleSelectorAppend<&'_ S, E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &S)
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
impl<'a, S, T, E> StyleSelectorAppend<&'a [S], E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &[S])
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,