pub struct ProjectDocument { /* private fields */ }Expand description
Project (.kicad_pro) APIs.
Implementations§
Source§impl ProjectDocument
impl ProjectDocument
pub fn ast(&self) -> &ProjectAst
pub fn ast_mut(&mut self) -> &mut ProjectAst
pub fn raw(&self) -> &str
pub fn json(&self) -> &Value
pub fn set_pinned_symbol_libs<I, S>(&mut self, libs: I) -> &mut ProjectDocument
pub fn set_pinned_footprint_libs<I, S>( &mut self, libs: I, ) -> &mut ProjectDocument
pub fn write<P>(&self, path: P) -> Result<(), Error>
pub fn write_mode<P>(&self, path: P, mode: WriteMode) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for ProjectDocument
impl Clone for ProjectDocument
Source§fn clone(&self) -> ProjectDocument
fn clone(&self) -> ProjectDocument
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProjectDocument
impl RefUnwindSafe for ProjectDocument
impl Send for ProjectDocument
impl Sync for ProjectDocument
impl Unpin for ProjectDocument
impl UnsafeUnpin for ProjectDocument
impl UnwindSafe for ProjectDocument
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