pub struct LayerMetadata {
pub layer_name: &'static str,
pub layer_number: u8,
pub type_name: &'static str,
}Expand description
Layer metadata for runtime introspection
Fields§
§layer_name: &'static strLayer name
layer_number: u8Layer number (1-4)
type_name: &'static strType name
Implementations§
Source§impl LayerMetadata
impl LayerMetadata
Sourcepub const fn new(
layer_name: &'static str,
layer_number: u8,
type_name: &'static str,
) -> Self
pub const fn new( layer_name: &'static str, layer_number: u8, type_name: &'static str, ) -> Self
Create new layer metadata
Sourcepub fn layer_name(&self) -> &'static str
pub fn layer_name(&self) -> &'static str
Get the layer name
Sourcepub fn layer_number(&self) -> u8
pub fn layer_number(&self) -> u8
Get the layer number
Sourcepub fn can_depend_on(&self, other_layer: &str) -> bool
pub fn can_depend_on(&self, other_layer: &str) -> bool
Check if this layer can depend on another layer
Trait Implementations§
Source§impl Clone for LayerMetadata
impl Clone for LayerMetadata
Source§fn clone(&self) -> LayerMetadata
fn clone(&self) -> LayerMetadata
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 LayerMetadata
impl Debug for LayerMetadata
Source§impl PartialEq for LayerMetadata
impl PartialEq for LayerMetadata
impl Copy for LayerMetadata
impl Eq for LayerMetadata
impl StructuralPartialEq for LayerMetadata
Auto Trait Implementations§
impl Freeze for LayerMetadata
impl RefUnwindSafe for LayerMetadata
impl Send for LayerMetadata
impl Sync for LayerMetadata
impl Unpin for LayerMetadata
impl UnwindSafe for LayerMetadata
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> 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.