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 Filewhere
*const u8 is !null: Freeze,
PhantomData<Import>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Attr>: Freeze,
PhantomData<Child>: Freeze,
impl Move for File
impl RefUnwindSafe for File
impl Send for Filewhere
RawVecInner: Send,
impl Sync for Filewhere
RawVecInner: Sync,
impl Unpin for File
impl UnsafeUnpin for Filewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Import>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Attr>: UnsafeUnpin,
PhantomData<Child>: UnsafeUnpin,
impl UnwindSafe for Filewhere
RawVecInner: UnwindSafe,
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