pub struct DesignRulesDocument { /* private fields */ }Implementations§
Source§impl DesignRulesDocument
impl DesignRulesDocument
pub fn ast(&self) -> &DesignRulesAst
pub fn ast_mut(&mut self) -> &mut DesignRulesAst
pub fn cst(&self) -> &CstDocument
pub fn diagnostics(&self) -> &[Diagnostic]
pub fn set_version(&mut self, version: i32) -> &mut DesignRulesDocument
pub fn add_rule<S>(&mut self, name: S) -> &mut DesignRulesDocument
pub fn rename_rule<S>(&mut self, from: &str, to: S) -> &mut DesignRulesDocument
pub fn rename_first_rule<S>(&mut self, to: S) -> &mut DesignRulesDocument
pub fn upsert_rule_condition<S>( &mut self, rule_name: &str, condition: S, ) -> &mut DesignRulesDocument
pub fn remove_rule_condition( &mut self, rule_name: &str, ) -> &mut DesignRulesDocument
pub fn upsert_rule_layer<S>( &mut self, rule_name: &str, layer: S, ) -> &mut DesignRulesDocument
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 DesignRulesDocument
impl Clone for DesignRulesDocument
Source§fn clone(&self) -> DesignRulesDocument
fn clone(&self) -> DesignRulesDocument
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 DesignRulesDocument
impl RefUnwindSafe for DesignRulesDocument
impl Send for DesignRulesDocument
impl Sync for DesignRulesDocument
impl Unpin for DesignRulesDocument
impl UnsafeUnpin for DesignRulesDocument
impl UnwindSafe for DesignRulesDocument
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