pub struct Border {
Show 21 fields pub border_top_color: T, pub border_top_style: T, pub border_top_width: T, pub border_right_color: T, pub border_right_style: T, pub border_right_width: T, pub border_bottom_color: T, pub border_bottom_style: T, pub border_bottom_width: T, pub border_left_color: T, pub border_left_style: T, pub border_left_width: T, pub border_top_left_radius: T, pub border_top_right_radius: T, pub border_bottom_right_radius: T, pub border_bottom_left_radius: T, pub border_image_source: T, pub border_image_outset: T, pub border_image_repeat: T, pub border_image_width: T, pub border_image_slice: T,
}
Expand description

The Border style struct.

Fields§

§border_top_color: T

The border-top-color computed value.

§border_top_style: T

The border-top-style computed value.

§border_top_width: T

The border-top-width computed value.

§border_right_color: T

The border-right-color computed value.

§border_right_style: T

The border-right-style computed value.

§border_right_width: T

The border-right-width computed value.

§border_bottom_color: T

The border-bottom-color computed value.

§border_bottom_style: T

The border-bottom-style computed value.

§border_bottom_width: T

The border-bottom-width computed value.

§border_left_color: T

The border-left-color computed value.

§border_left_style: T

The border-left-style computed value.

§border_left_width: T

The border-left-width computed value.

§border_top_left_radius: T

The border-top-left-radius computed value.

§border_top_right_radius: T

The border-top-right-radius computed value.

§border_bottom_right_radius: T

The border-bottom-right-radius computed value.

§border_bottom_left_radius: T

The border-bottom-left-radius computed value.

§border_image_source: T

The border-image-source computed value.

§border_image_outset: T

The border-image-outset computed value.

§border_image_repeat: T

The border-image-repeat computed value.

§border_image_width: T

The border-image-width computed value.

§border_image_slice: T

The border-image-slice computed value.

Implementations§

source§

impl Border

source

pub fn set_border_top_color(&mut self, v: T)

Set border-top-color.

source

pub fn copy_border_top_color_from(&mut self, other: &Self)

Set border-top-color from other struct.

source

pub fn reset_border_top_color(&mut self, other: &Self)

Reset border-top-color from the initial struct.

source

pub fn clone_border_top_color(&self) -> T

Get the computed value for border-top-color.

source

pub fn set_border_top_style(&mut self, v: T)

Set border-top-style.

source

pub fn copy_border_top_style_from(&mut self, other: &Self)

Set border-top-style from other struct.

source

pub fn reset_border_top_style(&mut self, other: &Self)

Reset border-top-style from the initial struct.

source

pub fn clone_border_top_style(&self) -> T

Get the computed value for border-top-style.

source

pub fn set_border_top_width(&mut self, v: T)

Set border-top-width.

source

pub fn copy_border_top_width_from(&mut self, other: &Self)

Set border-top-width from other struct.

source

pub fn reset_border_top_width(&mut self, other: &Self)

Reset border-top-width from the initial struct.

source

pub fn clone_border_top_width(&self) -> T

Get the computed value for border-top-width.

source

pub fn set_border_right_color(&mut self, v: T)

Set border-right-color.

source

pub fn copy_border_right_color_from(&mut self, other: &Self)

Set border-right-color from other struct.

source

pub fn reset_border_right_color(&mut self, other: &Self)

Reset border-right-color from the initial struct.

source

pub fn clone_border_right_color(&self) -> T

Get the computed value for border-right-color.

source

pub fn set_border_right_style(&mut self, v: T)

Set border-right-style.

source

pub fn copy_border_right_style_from(&mut self, other: &Self)

Set border-right-style from other struct.

source

pub fn reset_border_right_style(&mut self, other: &Self)

Reset border-right-style from the initial struct.

source

pub fn clone_border_right_style(&self) -> T

Get the computed value for border-right-style.

source

pub fn set_border_right_width(&mut self, v: T)

Set border-right-width.

source

pub fn copy_border_right_width_from(&mut self, other: &Self)

Set border-right-width from other struct.

source

pub fn reset_border_right_width(&mut self, other: &Self)

Reset border-right-width from the initial struct.

source

pub fn clone_border_right_width(&self) -> T

Get the computed value for border-right-width.

source

pub fn set_border_bottom_color(&mut self, v: T)

Set border-bottom-color.

source

pub fn copy_border_bottom_color_from(&mut self, other: &Self)

Set border-bottom-color from other struct.

source

pub fn reset_border_bottom_color(&mut self, other: &Self)

Reset border-bottom-color from the initial struct.

source

pub fn clone_border_bottom_color(&self) -> T

Get the computed value for border-bottom-color.

source

pub fn set_border_bottom_style(&mut self, v: T)

Set border-bottom-style.

source

pub fn copy_border_bottom_style_from(&mut self, other: &Self)

Set border-bottom-style from other struct.

source

pub fn reset_border_bottom_style(&mut self, other: &Self)

Reset border-bottom-style from the initial struct.

source

pub fn clone_border_bottom_style(&self) -> T

Get the computed value for border-bottom-style.

source

pub fn set_border_bottom_width(&mut self, v: T)

Set border-bottom-width.

source

pub fn copy_border_bottom_width_from(&mut self, other: &Self)

Set border-bottom-width from other struct.

source

pub fn reset_border_bottom_width(&mut self, other: &Self)

Reset border-bottom-width from the initial struct.

source

pub fn clone_border_bottom_width(&self) -> T

Get the computed value for border-bottom-width.

source

pub fn set_border_left_color(&mut self, v: T)

Set border-left-color.

source

pub fn copy_border_left_color_from(&mut self, other: &Self)

Set border-left-color from other struct.

source

pub fn reset_border_left_color(&mut self, other: &Self)

Reset border-left-color from the initial struct.

source

pub fn clone_border_left_color(&self) -> T

Get the computed value for border-left-color.

source

pub fn set_border_left_style(&mut self, v: T)

Set border-left-style.

source

pub fn copy_border_left_style_from(&mut self, other: &Self)

Set border-left-style from other struct.

source

pub fn reset_border_left_style(&mut self, other: &Self)

Reset border-left-style from the initial struct.

source

pub fn clone_border_left_style(&self) -> T

Get the computed value for border-left-style.

source

pub fn set_border_left_width(&mut self, v: T)

Set border-left-width.

source

pub fn copy_border_left_width_from(&mut self, other: &Self)

Set border-left-width from other struct.

source

pub fn reset_border_left_width(&mut self, other: &Self)

Reset border-left-width from the initial struct.

source

pub fn clone_border_left_width(&self) -> T

Get the computed value for border-left-width.

source

pub fn set_border_top_left_radius(&mut self, v: T)

Set border-top-left-radius.

source

pub fn copy_border_top_left_radius_from(&mut self, other: &Self)

Set border-top-left-radius from other struct.

source

pub fn reset_border_top_left_radius(&mut self, other: &Self)

Reset border-top-left-radius from the initial struct.

source

pub fn clone_border_top_left_radius(&self) -> T

Get the computed value for border-top-left-radius.

source

pub fn set_border_top_right_radius(&mut self, v: T)

Set border-top-right-radius.

source

pub fn copy_border_top_right_radius_from(&mut self, other: &Self)

Set border-top-right-radius from other struct.

source

pub fn reset_border_top_right_radius(&mut self, other: &Self)

Reset border-top-right-radius from the initial struct.

source

pub fn clone_border_top_right_radius(&self) -> T

Get the computed value for border-top-right-radius.

source

pub fn set_border_bottom_right_radius(&mut self, v: T)

Set border-bottom-right-radius.

source

pub fn copy_border_bottom_right_radius_from(&mut self, other: &Self)

Set border-bottom-right-radius from other struct.

source

pub fn reset_border_bottom_right_radius(&mut self, other: &Self)

Reset border-bottom-right-radius from the initial struct.

source

pub fn clone_border_bottom_right_radius(&self) -> T

Get the computed value for border-bottom-right-radius.

source

pub fn set_border_bottom_left_radius(&mut self, v: T)

Set border-bottom-left-radius.

source

pub fn copy_border_bottom_left_radius_from(&mut self, other: &Self)

Set border-bottom-left-radius from other struct.

source

pub fn reset_border_bottom_left_radius(&mut self, other: &Self)

Reset border-bottom-left-radius from the initial struct.

source

pub fn clone_border_bottom_left_radius(&self) -> T

Get the computed value for border-bottom-left-radius.

source

pub fn set_border_image_source(&mut self, v: T)

Set border-image-source.

source

pub fn copy_border_image_source_from(&mut self, other: &Self)

Set border-image-source from other struct.

source

pub fn reset_border_image_source(&mut self, other: &Self)

Reset border-image-source from the initial struct.

source

pub fn clone_border_image_source(&self) -> T

Get the computed value for border-image-source.

source

pub fn set_border_image_outset(&mut self, v: T)

Set border-image-outset.

source

pub fn copy_border_image_outset_from(&mut self, other: &Self)

Set border-image-outset from other struct.

source

pub fn reset_border_image_outset(&mut self, other: &Self)

Reset border-image-outset from the initial struct.

source

pub fn clone_border_image_outset(&self) -> T

Get the computed value for border-image-outset.

source

pub fn set_border_image_repeat(&mut self, v: T)

Set border-image-repeat.

source

pub fn copy_border_image_repeat_from(&mut self, other: &Self)

Set border-image-repeat from other struct.

source

pub fn reset_border_image_repeat(&mut self, other: &Self)

Reset border-image-repeat from the initial struct.

source

pub fn clone_border_image_repeat(&self) -> T

Get the computed value for border-image-repeat.

source

pub fn set_border_image_width(&mut self, v: T)

Set border-image-width.

source

pub fn copy_border_image_width_from(&mut self, other: &Self)

Set border-image-width from other struct.

source

pub fn reset_border_image_width(&mut self, other: &Self)

Reset border-image-width from the initial struct.

source

pub fn clone_border_image_width(&self) -> T

Get the computed value for border-image-width.

source

pub fn set_border_image_slice(&mut self, v: T)

Set border-image-slice.

source

pub fn copy_border_image_slice_from(&mut self, other: &Self)

Set border-image-slice from other struct.

source

pub fn reset_border_image_slice(&mut self, other: &Self)

Reset border-image-slice from the initial struct.

source

pub fn clone_border_image_slice(&self) -> T

Get the computed value for border-image-slice.

source

pub fn border_top_has_nonzero_width(&self) -> bool

Whether the border-top property has nonzero width.

source

pub fn border_right_has_nonzero_width(&self) -> bool

Whether the border-right property has nonzero width.

source

pub fn border_bottom_has_nonzero_width(&self) -> bool

Whether the border-bottom property has nonzero width.

source

pub fn border_left_has_nonzero_width(&self) -> bool

Whether the border-left property has nonzero width.

Trait Implementations§

source§

impl Clone for Border

source§

fn clone(&self) -> Border

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 Debug for Border

source§

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

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

impl MallocSizeOf for Border

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
source§

impl PartialEq<Border> for Border

source§

fn eq(&self, other: &Border) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Border

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,

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 more
source§

impl<T> MaybeBoxed<Box<T, Global>> for T

source§

fn maybe_boxed(self) -> Box<T, Global>

Convert
source§

impl<T> MaybeBoxed<T> for T

source§

fn maybe_boxed(self) -> T

Convert
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Erased for T

source§

impl<T> ErasedDestructor for Twhere T: 'static,

source§

impl<T> MaybeSendSync for T