layout_2020::table::layout

Type Alias CollapsedBorders

Source
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>

Source

pub fn from_physical_size( physical_size: &PhysicalSize<T>, mode: WritingMode, ) -> Self

Source

pub fn map<U>(&self, f: impl Fn(&T) -> U) -> LogicalVec2<U>

Source

pub(crate) fn map_with<U, V>( &self, other: &LogicalVec2<U>, f: impl Fn(&T, &U) -> V, ) -> LogicalVec2<V>

Source§

impl<T: Zero> LogicalVec2<T>

Source

pub fn zero() -> Self

Source§

impl<T: Clone> LogicalVec2<T>

Source§

impl<T: Copy + Neg<Output = T>> LogicalVec2<T>

Source§

impl<T> LogicalVec2<T>

Source

pub(crate) fn as_ref(&self) -> LogicalVec2<&T>

Source

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: Add<Output = T> + Copy> Add for LogicalVec2<T>

Source§

type Output = LogicalVec2<T>

The resulting type after applying the + operator.
Source§

fn add(self, other: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: AddAssign<T> + Copy> AddAssign for LogicalVec2<T>

Source§

fn add_assign(&mut self, other: LogicalVec2<T>)

Performs the += operation. Read more
Source§

impl<T: Clone> Clone for LogicalVec2<T>

Source§

fn clone(&self) -> LogicalVec2<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for LogicalVec2<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Default> Default for LogicalVec2<T>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T: Copy> From<T> for LogicalVec2<T>

Source§

fn from(value: T) -> Self

Converts to this type from the input type.
Source§

impl<T: Neg<Output = T> + Copy> Neg for LogicalVec2<T>

Source§

type Output = LogicalVec2<T>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T: PartialEq> PartialEq for LogicalVec2<T>

Source§

fn eq(&self, other: &LogicalVec2<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: Sub<Output = T> + Copy> Sub for LogicalVec2<T>

Source§

type Output = LogicalVec2<T>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: SubAssign<T> + Copy> SubAssign for LogicalVec2<T>

Source§

fn sub_assign(&mut self, other: LogicalVec2<T>)

Performs the -= operation. Read more
Source§

impl<T: Copy> Copy for LogicalVec2<T>

Source§

impl<T> StructuralPartialEq for LogicalVec2<T>