pub struct LayerTable { /* private fields */ }Implementations§
Source§impl LayerTable
impl LayerTable
pub fn new() -> Self
pub fn get_or_insert(&mut self, info: LayerInfo) -> LayerIndex
pub fn info(&self, idx: LayerIndex) -> &LayerInfo
pub fn by_gds(&self, layer: u16, datatype: u16) -> Option<LayerIndex>
pub fn by_name(&self, name: &str) -> Option<LayerIndex>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = (LayerIndex, &LayerInfo)>
Trait Implementations§
Source§impl Clone for LayerTable
impl Clone for LayerTable
Source§fn clone(&self) -> LayerTable
fn clone(&self) -> LayerTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayerTable
impl Debug for LayerTable
Source§impl Default for LayerTable
impl Default for LayerTable
Source§fn default() -> LayerTable
fn default() -> LayerTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LayerTable
impl RefUnwindSafe for LayerTable
impl Send for LayerTable
impl Sync for LayerTable
impl Unpin for LayerTable
impl UnsafeUnpin for LayerTable
impl UnwindSafe for LayerTable
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