pub struct FootprintDocument { /* private fields */ }Expand description
Footprint (.kicad_mod) APIs.
Implementations§
Source§impl FootprintDocument
impl FootprintDocument
pub fn ast(&self) -> &FootprintAst
pub fn ast_mut(&mut self) -> &mut FootprintAst
pub fn set_lib_id<S>(&mut self, lib_id: S) -> &mut FootprintDocument
pub fn set_version(&mut self, version: i32) -> &mut FootprintDocument
pub fn set_generator<S>(&mut self, generator: S) -> &mut FootprintDocument
pub fn set_generator_version<S>( &mut self, generator_version: S, ) -> &mut FootprintDocument
pub fn set_layer<S>(&mut self, layer: S) -> &mut FootprintDocument
pub fn set_descr<S>(&mut self, descr: S) -> &mut FootprintDocument
pub fn set_reference<S>(&mut self, value: S) -> &mut FootprintDocument
pub fn set_value<S>(&mut self, value: S) -> &mut FootprintDocument
pub fn upsert_property<K, V>( &mut self, key: K, value: V, ) -> &mut FootprintDocument
pub fn remove_property(&mut self, key: &str) -> &mut FootprintDocument
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 FootprintDocument
impl Clone for FootprintDocument
Source§fn clone(&self) -> FootprintDocument
fn clone(&self) -> FootprintDocument
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 FootprintDocument
impl RefUnwindSafe for FootprintDocument
impl Send for FootprintDocument
impl Sync for FootprintDocument
impl Unpin for FootprintDocument
impl UnsafeUnpin for FootprintDocument
impl UnwindSafe for FootprintDocument
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