Struct norad::Guideline [−][src]
pub struct Guideline {
pub line: Line,
pub name: Option<String>,
pub color: Option<Color>,
// some fields omitted
}
Expand description
A guideline associated with a glyph.
Fields
line: Line
The line itself.
name: Option<String>
An arbitrary name for the guideline.
color: Option<Color>
The color of the line.
Implementations
pub fn new(
line: Line,
name: Option<String>,
color: Option<Color>,
identifier: Option<Identifier>,
lib: Option<Plist>
) -> Self
Returns a mutable reference to the Guideline’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 Guideline, leaving a None in its place.
Returns an immutable reference to the Guideline’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 Guideline
impl UnwindSafe for Guideline
Blanket Implementations
Mutably borrows from an owned value. Read more