pub struct PcbDocument { /* private fields */ }Expand description
PCB (.kicad_pcb) APIs.
Implementations§
Source§impl PcbDocument
impl PcbDocument
pub fn ast(&self) -> &PcbAst
pub fn ast_mut(&mut self) -> &mut PcbAst
pub fn set_version(&mut self, version: i32) -> &mut PcbDocument
pub fn set_generator<S>(&mut self, generator: S) -> &mut PcbDocument
pub fn set_generator_version<S>( &mut self, generator_version: S, ) -> &mut PcbDocument
pub fn set_paper_standard<S>( &mut self, kind: S, orientation: Option<&str>, ) -> &mut PcbDocument
pub fn set_paper_user( &mut self, width: f64, height: f64, orientation: Option<&str>, ) -> &mut PcbDocument
pub fn set_title<S>(&mut self, title: S) -> &mut PcbDocument
pub fn set_date<S>(&mut self, date: S) -> &mut PcbDocument
pub fn set_revision<S>(&mut self, revision: S) -> &mut PcbDocument
pub fn set_company<S>(&mut self, company: S) -> &mut PcbDocument
pub fn upsert_property<K, V>(&mut self, key: K, value: V) -> &mut PcbDocument
pub fn remove_property(&mut self, key: &str) -> &mut PcbDocument
pub fn cst(&self) -> &CstDocument
pub fn diagnostics(&self) -> &[Diagnostic]
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 PcbDocument
impl Clone for PcbDocument
Source§fn clone(&self) -> PcbDocument
fn clone(&self) -> PcbDocument
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 PcbDocument
impl RefUnwindSafe for PcbDocument
impl Send for PcbDocument
impl Sync for PcbDocument
impl Unpin for PcbDocument
impl UnsafeUnpin for PcbDocument
impl UnwindSafe for PcbDocument
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