pub struct Picture {
pub width: Option<Expr>,
pub height: Option<Expr>,
pub stmts: Vec<Stmt>,
pub macros: Macros,
pub base_dir: Option<PathBuf>,
}Expand description
A complete picture: optional .PS <w> <h> dimensions plus a list of elements.
Fields§
§width: Option<Expr>§height: Option<Expr>§stmts: Vec<Stmt>§macros: Macros§base_dir: Option<PathBuf>Directory used to resolve copy "file" includes (set by parse_in_dir);
None when parsing has no filesystem context (WASM/bindings).
Trait Implementations§
impl StructuralPartialEq for Picture
Auto Trait Implementations§
impl Freeze for Picture
impl RefUnwindSafe for Picture
impl Send for Picture
impl Sync for Picture
impl Unpin for Picture
impl UnsafeUnpin for Picture
impl UnwindSafe for Picture
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