pub struct Layer(pub u8);Expand description
PCB layer identifier.
Altium uses byte values (0-255) to identify layers.
Tuple Fields§
§0: u8Implementations§
Source§impl Layer
impl Layer
pub const NO_LAYER: Layer
pub const TOP_LAYER: Layer
pub const MID_LAYER_1: Layer
pub const MID_LAYER_2: Layer
pub const MID_LAYER_3: Layer
pub const MID_LAYER_4: Layer
pub const MID_LAYER_5: Layer
pub const MID_LAYER_6: Layer
pub const MID_LAYER_7: Layer
pub const MID_LAYER_8: Layer
pub const MID_LAYER_9: Layer
pub const MID_LAYER_10: Layer
pub const MID_LAYER_11: Layer
pub const MID_LAYER_12: Layer
pub const MID_LAYER_13: Layer
pub const MID_LAYER_14: Layer
pub const MID_LAYER_15: Layer
pub const MID_LAYER_16: Layer
pub const MID_LAYER_17: Layer
pub const MID_LAYER_18: Layer
pub const MID_LAYER_19: Layer
pub const MID_LAYER_20: Layer
pub const MID_LAYER_21: Layer
pub const MID_LAYER_22: Layer
pub const MID_LAYER_23: Layer
pub const MID_LAYER_24: Layer
pub const MID_LAYER_25: Layer
pub const MID_LAYER_26: Layer
pub const MID_LAYER_27: Layer
pub const MID_LAYER_28: Layer
pub const MID_LAYER_29: Layer
pub const MID_LAYER_30: Layer
pub const BOTTOM_LAYER: Layer
pub const TOP_OVERLAY: Layer
pub const BOTTOM_OVERLAY: Layer
pub const TOP_PASTE: Layer
pub const BOTTOM_PASTE: Layer
pub const TOP_SOLDER: Layer
pub const BOTTOM_SOLDER: Layer
pub const INTERNAL_PLANE_1: Layer
pub const INTERNAL_PLANE_2: Layer
pub const INTERNAL_PLANE_3: Layer
pub const INTERNAL_PLANE_4: Layer
pub const INTERNAL_PLANE_5: Layer
pub const INTERNAL_PLANE_6: Layer
pub const INTERNAL_PLANE_7: Layer
pub const INTERNAL_PLANE_8: Layer
pub const INTERNAL_PLANE_9: Layer
pub const INTERNAL_PLANE_10: Layer
pub const INTERNAL_PLANE_11: Layer
pub const INTERNAL_PLANE_12: Layer
pub const INTERNAL_PLANE_13: Layer
pub const INTERNAL_PLANE_14: Layer
pub const INTERNAL_PLANE_15: Layer
pub const INTERNAL_PLANE_16: Layer
pub const DRILL_GUIDE: Layer
pub const KEEP_OUT_LAYER: Layer
pub const MECHANICAL_1: Layer
pub const MECHANICAL_2: Layer
pub const MECHANICAL_3: Layer
pub const MECHANICAL_4: Layer
pub const MECHANICAL_5: Layer
pub const MECHANICAL_6: Layer
pub const MECHANICAL_7: Layer
pub const MECHANICAL_8: Layer
pub const MECHANICAL_9: Layer
pub const MECHANICAL_10: Layer
pub const MECHANICAL_11: Layer
pub const MECHANICAL_12: Layer
pub const MECHANICAL_13: Layer
pub const MECHANICAL_14: Layer
pub const MECHANICAL_15: Layer
pub const MECHANICAL_16: Layer
pub const DRILL_DRAWING: Layer
pub const MULTI_LAYER: Layer
pub const CONNECT_LAYER: Layer
pub const BACKGROUND_LAYER: Layer
pub const DRC_ERROR_LAYER: Layer
pub const HIGHLIGHT_LAYER: Layer
pub const GRID_COLOR_1: Layer
pub const GRID_COLOR_10: Layer
pub const PAD_HOLE_LAYER: Layer
pub const VIA_HOLE_LAYER: Layer
pub const TOP_PAD_MASTER: Layer
pub const BOTTOM_PAD_MASTER: Layer
pub const DRC_DETAIL_LAYER: Layer
pub const MECHANICAL_17: Layer
pub const MECHANICAL_18: Layer
pub const MECHANICAL_19: Layer
pub const MECHANICAL_20: Layer
pub const MECHANICAL_21: Layer
pub const MECHANICAL_22: Layer
pub const MECHANICAL_23: Layer
pub const MECHANICAL_24: Layer
pub const MECHANICAL_25: Layer
pub const MECHANICAL_26: Layer
pub const MECHANICAL_27: Layer
pub const MECHANICAL_28: Layer
pub const MECHANICAL_29: Layer
pub const MECHANICAL_30: Layer
pub const MECHANICAL_31: Layer
pub const MECHANICAL_32: Layer
pub const UNKNOWN: Layer
Sourcepub const fn multi_layer() -> Self
pub const fn multi_layer() -> Self
Returns the MultiLayer constant (for through-hole pads).
Sourcepub fn is_copper(self) -> bool
pub fn is_copper(self) -> bool
Returns true if this is a copper layer (top, bottom, or mid layers).
Sourcepub fn is_mechanical(self) -> bool
pub fn is_mechanical(self) -> bool
Returns true if this is a mechanical layer (1-32).
Sourcepub fn is_overlay(self) -> bool
pub fn is_overlay(self) -> bool
Returns true if this is an overlay/silkscreen layer.
Trait Implementations§
Source§impl FromBinary for Layer
impl FromBinary for Layer
Source§impl Ord for Layer
impl Ord for Layer
Source§impl PartialOrd for Layer
impl PartialOrd for Layer
impl Copy for Layer
impl Eq for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more