pub struct LayerMapping {
pub entries: Vec<LayerMapEntry>,
/* private fields */
}Fields§
§entries: Vec<LayerMapEntry>Implementations§
Source§impl LayerMapping
impl LayerMapping
pub fn new() -> Self
pub fn insert(&mut self, entry: LayerMapEntry)
pub fn lookup_name(&self, name: &str, purpose: &str) -> Option<&LayerMapEntry>
pub fn lookup_gds(&self, layer: u16, datatype: u16) -> Option<&LayerMapEntry>
Sourcepub fn to_layer_info(entry: &LayerMapEntry) -> LayerInfo
pub fn to_layer_info(entry: &LayerMapEntry) -> LayerInfo
Convert an entry to a LayerInfo using name as the layer
name. The purpose field is dropped — LayerInfo is keyed by
(layer, datatype) only.
Trait Implementations§
Source§impl Clone for LayerMapping
impl Clone for LayerMapping
Source§fn clone(&self) -> LayerMapping
fn clone(&self) -> LayerMapping
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 LayerMapping
impl Debug for LayerMapping
Source§impl Default for LayerMapping
impl Default for LayerMapping
Source§fn default() -> LayerMapping
fn default() -> LayerMapping
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LayerMapping
impl RefUnwindSafe for LayerMapping
impl Send for LayerMapping
impl Sync for LayerMapping
impl Unpin for LayerMapping
impl UnsafeUnpin for LayerMapping
impl UnwindSafe for LayerMapping
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