pub struct File {
pub imports: Vec<Import>,
pub root: Element,
pub next_id: u32,
}Expand description
A parsed .design file: its imports, then its one root element.
Fields§
§imports: Vec<Import>Its imports, in the order written.
root: ElementThe root element, which holds every other.
next_id: u32The id the file’s next new element takes: one past every id its
elements have, or ever had (see crate::ids).
Trait Implementations§
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Forget for File
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
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