Struct glifparser::guideline::Guideline
source · pub struct Guideline<GD: PointData> {
pub at: GuidelinePoint,
pub angle: IntegerOrFloat,
pub name: Option<String>,
pub color: Option<Color>,
pub identifier: Option<String>,
pub data: GD,
}Fields§
§at: GuidelinePoint§angle: IntegerOrFloat§name: Option<String>§color: Option<Color>§identifier: Option<String>§data: GDImplementations§
source§impl<GD: PointData> Guideline<GD>
impl<GD: PointData> Guideline<GD>
pub fn as_plist_dict(&self) -> Dictionary
source§impl<GD: PointData> Guideline<GD>
impl<GD: PointData> Guideline<GD>
pub fn from_x_y_angle(x: f32, y: f32, angle: IntegerOrFloat) -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn color(self, color: impl Into<Color>) -> Self
pub fn identifier(self, identifier: impl Into<String>) -> Self
pub fn data(self, data: impl Into<GD>) -> Self
Trait Implementations§
source§impl<'de, GD> Deserialize<'de> for Guideline<GD>where
GD: Deserialize<'de> + PointData,
impl<'de, GD> Deserialize<'de> for Guideline<GD>where
GD: Deserialize<'de> + PointData,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more