Struct layout_2013::table_cell::CollapsedBordersForCell
source · pub struct CollapsedBordersForCell {
pub inline_start_border: CollapsedBorder,
pub inline_end_border: CollapsedBorder,
pub block_start_border: CollapsedBorder,
pub block_end_border: CollapsedBorder,
pub inline_start_width: Au,
pub inline_end_width: Au,
pub block_start_width: Au,
pub block_end_width: Au,
}
Fields§
§inline_start_border: CollapsedBorder
§inline_end_border: CollapsedBorder
§block_start_border: CollapsedBorder
§block_end_border: CollapsedBorder
§inline_start_width: Au
§inline_end_width: Au
§block_start_width: Au
§block_end_width: Au
Implementations§
source§impl CollapsedBordersForCell
impl CollapsedBordersForCell
fn new() -> CollapsedBordersForCell
fn should_paint_inline_start_border(&self) -> bool
fn should_paint_inline_end_border(&self) -> bool
fn should_paint_block_start_border(&self) -> bool
fn should_paint_block_end_border(&self) -> bool
pub fn adjust_border_widths_for_painting( &self, border_widths: &mut LogicalMargin<Au>, )
pub fn adjust_border_bounds_for_painting( &self, border_bounds: &mut Rect<Au>, writing_mode: WritingMode, )
pub fn adjust_border_colors_and_styles_for_painting( &self, border_colors: &mut SideOffsets2D<Color>, border_styles: &mut SideOffsets2D<BorderStyle>, writing_mode: WritingMode, )
Trait Implementations§
source§impl Clone for CollapsedBordersForCell
impl Clone for CollapsedBordersForCell
source§fn clone(&self) -> CollapsedBordersForCell
fn clone(&self) -> CollapsedBordersForCell
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 Debug for CollapsedBordersForCell
impl Debug for CollapsedBordersForCell
Auto Trait Implementations§
impl Freeze for CollapsedBordersForCell
impl RefUnwindSafe for CollapsedBordersForCell
impl Send for CollapsedBordersForCell
impl Sync for CollapsedBordersForCell
impl Unpin for CollapsedBordersForCell
impl UnwindSafe for CollapsedBordersForCell
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert