pub struct Layer {
pub layer_id: String,
pub associated_master_id: Option<String>,
pub width: OrderedFloat<f64>,
pub vert_width: Option<OrderedFloat<f64>>,
pub vert_origin: Option<OrderedFloat<f64>>,
pub shapes: Vec<Shape>,
pub anchors: Vec<Anchor>,
pub attributes: LayerAttributes,
pub smart_component_positions: BTreeMap<SmolStr, AxisPole>,
pub hints: Vec<Hint>,
}Fields§
§layer_id: String§associated_master_id: Option<String>§width: OrderedFloat<f64>§vert_width: Option<OrderedFloat<f64>>§vert_origin: Option<OrderedFloat<f64>>§shapes: Vec<Shape>§anchors: Vec<Anchor>§attributes: LayerAttributes§smart_component_positions: BTreeMap<SmolStr, AxisPole>If this layer is part of a smart component, this defines its location.
Smart component layers can only be defined at the min or max of a given axis.
hints: Vec<Hint>Hints for this layer (e.g., corner components, stem hints, etc.)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.