Struct style::values::specified::basic_shape::ShapeRectFunction
source · #[repr(C)]pub struct ShapeRectFunction {
pub rect: Rect<LengthPercentageOrAuto>,
pub round: BorderRadius,
}
Expand description
Defines a rectangle via insets from the top and left edges of the reference box.
https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-rect
Fields§
§rect: Rect<LengthPercentageOrAuto>
The four
An auto value makes the edge of the box coincide with the corresponding edge of the reference box: it’s equivalent to 0% as the first (top) or fourth (left) value, and equivalent to 100% as the second (right) or third (bottom) value.
round: BorderRadius
The optional
Implementations§
source§impl ShapeRectFunction
impl ShapeRectFunction
sourcefn parse_function_arguments<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse_function_arguments<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Parse the inner function arguments of rect()
.
Trait Implementations§
source§impl Clone for ShapeRectFunction
impl Clone for ShapeRectFunction
source§fn clone(&self) -> ShapeRectFunction
fn clone(&self) -> ShapeRectFunction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ShapeRectFunction
impl Debug for ShapeRectFunction
source§impl MallocSizeOf for ShapeRectFunction
impl MallocSizeOf for ShapeRectFunction
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl PartialEq for ShapeRectFunction
impl PartialEq for ShapeRectFunction
source§fn eq(&self, other: &ShapeRectFunction) -> bool
fn eq(&self, other: &ShapeRectFunction) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl SpecifiedValueInfo for ShapeRectFunction
impl SpecifiedValueInfo for ShapeRectFunction
source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
source§impl ToCss for ShapeRectFunction
impl ToCss for ShapeRectFunction
source§impl ToShmem for ShapeRectFunction
impl ToShmem for ShapeRectFunction
impl StructuralPartialEq for ShapeRectFunction
Auto Trait Implementations§
impl Freeze for ShapeRectFunction
impl RefUnwindSafe for ShapeRectFunction
impl Send for ShapeRectFunction
impl Sync for ShapeRectFunction
impl Unpin for ShapeRectFunction
impl UnwindSafe for ShapeRectFunction
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> 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 more