pub enum BasicShape {
Inset(Box<InsetShape>),
Ellipse(Box<EllipseShape>),
Polygon(PolygonShape),
Path(PathShape),
}Expand description
Represents a basic shape function for clip-path.
Variants§
Inset(Box<InsetShape>)
inset() function
Ellipse(Box<EllipseShape>)
ellipse() function
Polygon(PolygonShape)
polygon() function
Path(PathShape)
path() function
Implementations§
Trait Implementations§
Source§impl Clone for BasicShape
impl Clone for BasicShape
Source§fn clone(&self) -> BasicShape
fn clone(&self) -> BasicShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BasicShape
impl Debug for BasicShape
Source§impl<'i> FromCss<'i> for BasicShape
impl<'i> FromCss<'i> for BasicShape
Source§const VALID_TOKENS: &'static [CssToken]
const VALID_TOKENS: &'static [CssToken]
Returns the list of valid CSS tokens for this type.
Source§fn from_css(parser: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
fn from_css(parser: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
Parses the type from a
Parser instance.Source§fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
Helper function to parse the type from a string.
Source§const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
Message template used when building parse errors for this type.
Source§impl PartialEq for BasicShape
impl PartialEq for BasicShape
Source§fn eq(&self, other: &BasicShape) -> bool
fn eq(&self, other: &BasicShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BasicShape
Auto Trait Implementations§
impl Freeze for BasicShape
impl RefUnwindSafe for BasicShape
impl Send for BasicShape
impl Sync for BasicShape
impl Unpin for BasicShape
impl UnsafeUnpin for BasicShape
impl UnwindSafe for BasicShape
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