Struct norad::Component [−][src]
pub struct Component {
pub base: GlyphName,
pub transform: AffineTransform,
// some fields omitted
}
Expand description
A reference to another glyph, to be included in this glyph’s outline.
Fields
base: GlyphName
The name of the base glyph.
transform: AffineTransform
Implementations
pub fn new(
base: GlyphName,
transform: AffineTransform,
identifier: Option<Identifier>,
lib: Option<Plist>
) -> Self
Returns a mutable reference to the component’s lib.
Replaces the actual lib by the lib given in parameter, returning the old lib if present. Sets a new UUID v4 identifier if none is set already.
Takes the lib out of the component, leaving a None in its place.
Returns an immutable reference to the component’s identifier.
Replaces the actual identifier by the identifier given in parameter, returning the old identifier if present.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Component
impl UnwindSafe for Component
Blanket Implementations
Mutably borrows from an owned value. Read more