[−][src]Struct gerber_types::MoirePrimitive
The moiré primitive is a cross hair centered on concentric rings (annuli). Exposure is always on.
Fields
center: (MacroDecimal, MacroDecimal)
X and Y coordinates of center point, decimals
diameter: MacroDecimal
Outer diameter of outer concentric ring, a decimal >= 0
ring_thickness: MacroDecimal
Ring thickness, a decimal >= 0
gap: MacroDecimal
Gap between rings, a decimal >= 0
max_rings: u32
Maximum number of rings
cross_hair_thickness: MacroDecimal
Cross hair thickness, a decimal >= 0
cross_hair_length: MacroDecimal
Cross hair length, a decimal >= 0
angle: MacroDecimal
Rotation angle of the moiré primitive
The rotation angle is specified by a decimal, in degrees. The primitive is rotated around the origin of the macro definition, i.e. the (0, 0) point of macro coordinates.
Note: Rotation is only allowed if the primitive center point coincides with the origin of the macro definition.
Implementations
impl MoirePrimitive
[src]
pub fn new() -> Self
[src]
pub fn centered_at(self, center: (MacroDecimal, MacroDecimal)) -> Self
[src]
pub fn with_diameter(self, diameter: MacroDecimal) -> Self
[src]
pub fn with_rings_max(self, max_rings: u32) -> Self
[src]
pub fn with_ring_thickness(self, thickness: MacroDecimal) -> Self
[src]
pub fn with_gap(self, gap: MacroDecimal) -> Self
[src]
pub fn with_cross_thickness(self, thickness: MacroDecimal) -> Self
[src]
pub fn with_cross_length(self, length: MacroDecimal) -> Self
[src]
pub fn with_angle(self, angle: MacroDecimal) -> Self
[src]
Trait Implementations
impl Clone for MoirePrimitive
[src]
pub fn clone(&self) -> MoirePrimitive
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MoirePrimitive
[src]
impl From<MoirePrimitive> for MacroContent
[src]
pub fn from(val: MoirePrimitive) -> MacroContent
[src]
impl PartialEq<MoirePrimitive> for MoirePrimitive
[src]
pub fn eq(&self, other: &MoirePrimitive) -> bool
[src]
pub fn ne(&self, other: &MoirePrimitive) -> bool
[src]
impl StructuralPartialEq for MoirePrimitive
[src]
Auto Trait Implementations
impl RefUnwindSafe for MoirePrimitive
[src]
impl Send for MoirePrimitive
[src]
impl Sync for MoirePrimitive
[src]
impl Unpin for MoirePrimitive
[src]
impl UnwindSafe for MoirePrimitive
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
[src]
Scheme: ApproxScheme,
type Err = NoError
The error type produced by a failed conversion.
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
[src]
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Scheme: ApproxScheme,
Dst: ApproxFrom<Src, Scheme>,
[src]
Scheme: ApproxScheme,
Dst: ApproxFrom<Src, Scheme>,
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, Dst> ConvAsUtil<Dst> for T
[src]
pub fn approx(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
[src]
Self: ApproxInto<Dst, DefaultApprox>,
pub fn approx_by<Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
[src]
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
impl<T> ConvUtil for T
[src]
pub fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
[src]
Self: ApproxInto<Dst, DefaultApprox>,
pub fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
[src]
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
pub fn into_as<Dst>(self) -> Dst where
Self: Into<Dst>,
[src]
Self: Into<Dst>,
pub fn try_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: TryInto<Dst>,
[src]
Self: TryInto<Dst>,
pub fn value_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ValueInto<Dst>,
[src]
Self: ValueInto<Dst>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<Src> TryFrom<Src> for Src
[src]
type Err = NoError
The error type produced by a failed conversion.
pub fn try_from(src: Src) -> Result<Src, <Src as TryFrom<Src>>::Err>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<Src, Dst> TryInto<Dst> for Src where
Dst: TryFrom<Src>,
[src]
Dst: TryFrom<Src>,
type Err = <Dst as TryFrom<Src>>::Err
The error type produced by a failed conversion.
pub fn try_into(self) -> Result<Dst, <Src as TryInto<Dst>>::Err>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<Src> ValueFrom<Src> for Src
[src]
type Err = NoError
The error type produced by a failed conversion.
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
[src]
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
[src]
Dst: ValueFrom<Src>,