Enum css_style::position::Clip [−][src]
pub enum Clip {
Auto,
ShapeRect {
top: ClipRectLength,
right: ClipRectLength,
bottom: ClipRectLength,
left: ClipRectLength,
},
Initial,
Inherit,
}
Variants
Auto
ShapeRect
Initial
Inherit
Implementations
pub fn rect(
top: impl Into<ClipRectLength>,
right: impl Into<ClipRectLength>,
bottom: impl Into<ClipRectLength>,
left: impl Into<ClipRectLength>
) -> Self
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Clip
impl UnwindSafe for Clip
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined
range, otherwise an OutOfBounds
error is returned which contains
the unclamped color. Read more