Struct layout_2013::table_row::CollapsedBorder
source · pub struct CollapsedBorder {
pub style: T,
pub width: Au,
pub color: Color,
pub provenance: CollapsedBorderFrom,
}
Expand description
All aspects of a border that can collapse with adjacent borders. See CSS 2.1 § 17.6.2.1.
Fields§
§style: T
The style of the border.
width: Au
The width of the border.
color: Color
The color of the border.
provenance: CollapsedBorderFrom
The type of item that this border comes from.
Implementations§
source§impl CollapsedBorder
impl CollapsedBorder
sourcepub fn new() -> CollapsedBorder
pub fn new() -> CollapsedBorder
Creates a collapsible border style for no border.
sourcefn top(
css_style: &ComputedValues,
provenance: CollapsedBorderFrom,
) -> CollapsedBorder
fn top( css_style: &ComputedValues, provenance: CollapsedBorderFrom, ) -> CollapsedBorder
Creates a collapsed border from the block-start border described in the given CSS style object.
sourcefn right(
css_style: &ComputedValues,
provenance: CollapsedBorderFrom,
) -> CollapsedBorder
fn right( css_style: &ComputedValues, provenance: CollapsedBorderFrom, ) -> CollapsedBorder
Creates a collapsed border style from the right border described in the given CSS style object.
sourcefn bottom(
css_style: &ComputedValues,
provenance: CollapsedBorderFrom,
) -> CollapsedBorder
fn bottom( css_style: &ComputedValues, provenance: CollapsedBorderFrom, ) -> CollapsedBorder
Creates a collapsed border style from the bottom border described in the given CSS style object.
sourcefn left(
css_style: &ComputedValues,
provenance: CollapsedBorderFrom,
) -> CollapsedBorder
fn left( css_style: &ComputedValues, provenance: CollapsedBorderFrom, ) -> CollapsedBorder
Creates a collapsed border style from the left border described in the given CSS style object.
sourcefn from_side(
side: PhysicalSide,
css_style: &ComputedValues,
provenance: CollapsedBorderFrom,
) -> CollapsedBorder
fn from_side( side: PhysicalSide, css_style: &ComputedValues, provenance: CollapsedBorderFrom, ) -> CollapsedBorder
Creates a collapsed border style from the given physical side.
sourcepub fn inline_start(
css_style: &ComputedValues,
provenance: CollapsedBorderFrom,
) -> CollapsedBorder
pub fn inline_start( css_style: &ComputedValues, provenance: CollapsedBorderFrom, ) -> CollapsedBorder
Creates a collapsed border style from the inline-start border described in the given CSS style object.
sourcepub fn inline_end(
css_style: &ComputedValues,
provenance: CollapsedBorderFrom,
) -> CollapsedBorder
pub fn inline_end( css_style: &ComputedValues, provenance: CollapsedBorderFrom, ) -> CollapsedBorder
Creates a collapsed border style from the inline-start border described in the given CSS style object.
sourcepub fn block_start(
css_style: &ComputedValues,
provenance: CollapsedBorderFrom,
) -> CollapsedBorder
pub fn block_start( css_style: &ComputedValues, provenance: CollapsedBorderFrom, ) -> CollapsedBorder
Creates a collapsed border style from the block-start border described in the given CSS style object.
sourcepub fn block_end(
css_style: &ComputedValues,
provenance: CollapsedBorderFrom,
) -> CollapsedBorder
pub fn block_end( css_style: &ComputedValues, provenance: CollapsedBorderFrom, ) -> CollapsedBorder
Creates a collapsed border style from the block-end border described in the given CSS style object.
sourcepub fn combine(&mut self, other: &CollapsedBorder)
pub fn combine(&mut self, other: &CollapsedBorder)
If other
has a higher priority per CSS 2.1 § 17.6.2.1, replaces self
with it.
Trait Implementations§
source§impl Clone for CollapsedBorder
impl Clone for CollapsedBorder
source§fn clone(&self) -> CollapsedBorder
fn clone(&self) -> CollapsedBorder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CollapsedBorder
impl Debug for CollapsedBorder
source§impl Default for CollapsedBorder
impl Default for CollapsedBorder
Auto Trait Implementations§
impl Freeze for CollapsedBorder
impl RefUnwindSafe for CollapsedBorder
impl Send for CollapsedBorder
impl Sync for CollapsedBorder
impl Unpin for CollapsedBorder
impl UnwindSafe for CollapsedBorder
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
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>
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>
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>
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian()
.