PointOrOffset
pub enum PointOrOffset { Point(PixelsOrPercentage), Offset(u32),}Specify a position along an axis in an image.
Variants
An offset relative to the center of the image, specified as a percentage of the image size.
0: u32
Trait implementations
impl Clone for PointOrOffset
impl Debug for PointOrOffset
impl Display for PointOrOffset
impl Serialize for PointOrOffset
serialize
View sourcewhere __S: Serializer,Parameters
- self: &Self
- __serializer: __S
Returns
_serde::__private228::Result<__S::Ok, __S::Error>