Struct taffy::geometry::InBothAbsAxis
source · pub(crate) struct InBothAbsAxis<T> {
pub horizontal: T,
pub vertical: T,
}
Expand description
Container that holds an item in each absolute axis without specifying what kind of item it is.
Fields§
§horizontal: T
The item in the horizontal axis
vertical: T
The item in the vertical axis
Implementations§
source§impl<T: Copy> InBothAbsAxis<T>
impl<T: Copy> InBothAbsAxis<T>
sourcepub fn get(&self, axis: AbsoluteAxis) -> T
pub fn get(&self, axis: AbsoluteAxis) -> T
Get the contained item based on the AbsoluteAxis passed
Trait Implementations§
source§impl<T: Clone> Clone for InBothAbsAxis<T>
impl<T: Clone> Clone for InBothAbsAxis<T>
source§fn clone(&self) -> InBothAbsAxis<T>
fn clone(&self) -> InBothAbsAxis<T>
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<T: Debug> Debug for InBothAbsAxis<T>
impl<T: Debug> Debug for InBothAbsAxis<T>
source§impl<T: PartialEq> PartialEq for InBothAbsAxis<T>
impl<T: PartialEq> PartialEq for InBothAbsAxis<T>
impl<T: Copy> Copy for InBothAbsAxis<T>
impl<T: Eq> Eq for InBothAbsAxis<T>
impl<T> StructuralPartialEq for InBothAbsAxis<T>
Auto Trait Implementations§
impl<T> Freeze for InBothAbsAxis<T>where
T: Freeze,
impl<T> RefUnwindSafe for InBothAbsAxis<T>where
T: RefUnwindSafe,
impl<T> Send for InBothAbsAxis<T>where
T: Send,
impl<T> Sync for InBothAbsAxis<T>where
T: Sync,
impl<T> Unpin for InBothAbsAxis<T>where
T: Unpin,
impl<T> UnwindSafe for InBothAbsAxis<T>where
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)