type CollapsedBorders = LogicalVec2<Vec<Vec<CollapsedBorder>>>;
Aliased Type§
struct CollapsedBorders {
pub inline: Vec<Vec<CollapsedBorder>>,
pub block: Vec<Vec<CollapsedBorder>>,
}
Fields§
§inline: Vec<Vec<CollapsedBorder>>
§block: Vec<Vec<CollapsedBorder>>
Implementations
Source§impl<T: Clone> LogicalVec2<T>
impl<T: Clone> LogicalVec2<T>
pub fn from_physical_size( physical_size: &PhysicalSize<T>, mode: WritingMode, ) -> Self
pub fn map<U>(&self, f: impl Fn(&T) -> U) -> LogicalVec2<U>
pub(crate) fn map_with<U, V>( &self, other: &LogicalVec2<U>, f: impl Fn(&T, &U) -> V, ) -> LogicalVec2<V>
Source§impl<T: Clone> LogicalVec2<T>
impl<T: Clone> LogicalVec2<T>
pub fn to_physical_size(&self, mode: WritingMode) -> PhysicalSize<T>
Source§impl<T: Copy + Neg<Output = T>> LogicalVec2<T>
impl<T: Copy + Neg<Output = T>> LogicalVec2<T>
pub fn to_physical_vector(&self, mode: WritingMode) -> PhysicalVec<T>
Source§impl<T> LogicalVec2<T>
impl<T> LogicalVec2<T>
pub(crate) fn as_ref(&self) -> LogicalVec2<&T>
pub fn map_inline_and_block_axes<U>( &self, inline_f: impl FnOnce(&T) -> U, block_f: impl FnOnce(&T) -> U, ) -> LogicalVec2<U>
Trait Implementations
Source§impl<T: AddAssign<T> + Copy> AddAssign for LogicalVec2<T>
impl<T: AddAssign<T> + Copy> AddAssign for LogicalVec2<T>
Source§fn add_assign(&mut self, other: LogicalVec2<T>)
fn add_assign(&mut self, other: LogicalVec2<T>)
Performs the
+=
operation. Read moreSource§impl<T: Clone> Clone for LogicalVec2<T>
impl<T: Clone> Clone for LogicalVec2<T>
Source§fn clone(&self) -> LogicalVec2<T>
fn clone(&self) -> LogicalVec2<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 LogicalVec2<T>
impl<T: Debug> Debug for LogicalVec2<T>
Source§impl<T: Default> Default for LogicalVec2<T>
impl<T: Default> Default for LogicalVec2<T>
Source§impl<T: Copy> From<T> for LogicalVec2<T>
impl<T: Copy> From<T> for LogicalVec2<T>
Source§impl<T: PartialEq> PartialEq for LogicalVec2<T>
impl<T: PartialEq> PartialEq for LogicalVec2<T>
Source§impl<T: SubAssign<T> + Copy> SubAssign for LogicalVec2<T>
impl<T: SubAssign<T> + Copy> SubAssign for LogicalVec2<T>
Source§fn sub_assign(&mut self, other: LogicalVec2<T>)
fn sub_assign(&mut self, other: LogicalVec2<T>)
Performs the
-=
operation. Read more