pub enum MacroBoolean {
Value(bool),
Variable(u32),
Expression(String),
}
Expand description
The gerber specification (2021.02 - 2024.05) 3.4 Data Types does not define a boolean However, there are various places where they are used in macros whey there are defined as having a 0 or 1 value. Such as the ‘exposure’ flag.
Variants§
Trait Implementations§
Source§impl Clone for MacroBoolean
impl Clone for MacroBoolean
Source§fn clone(&self) -> MacroBoolean
fn clone(&self) -> MacroBoolean
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 moreSource§impl Debug for MacroBoolean
impl Debug for MacroBoolean
Source§impl From<MacroDecimal> for MacroBoolean
impl From<MacroDecimal> for MacroBoolean
Source§fn from(value: MacroDecimal) -> Self
fn from(value: MacroDecimal) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MacroBoolean
impl PartialEq for MacroBoolean
impl StructuralPartialEq for MacroBoolean
Auto Trait Implementations§
impl Freeze for MacroBoolean
impl RefUnwindSafe for MacroBoolean
impl Send for MacroBoolean
impl Sync for MacroBoolean
impl Unpin for MacroBoolean
impl UnwindSafe for MacroBoolean
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