#[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: BorderRadiusThe 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§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§fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
    W: Write,
 
fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
    W: Write,
self in CSS syntax, writing to dest.Source§fn to_css_string(&self) -> String
 
fn to_css_string(&self) -> String
self in CSS syntax and return a string. Read moreSource§fn to_css_cssstring(&self) -> String
 
fn to_css_cssstring(&self) -> String
self in CSS syntax and return a CssString. Read moreSource§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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
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