libreda-db 0.0.12

Layout and netlist datastructures for chip design.
Documentation
// Copyright (c) 2020-2021 Thomas Kramer.
// SPDX-FileCopyrightText: 2022 Thomas Kramer
//
// SPDX-License-Identifier: AGPL-3.0-or-later

//! Re-export all traits defined in this crate.

pub use crate::hierarchy::traits::*;
pub use crate::l2n::*;
pub use crate::layout::traits::*;
pub use crate::netlist::traits::*;

/// Trait used for identifier types.
pub trait IdType: std::fmt::Debug + Clone + Eq + std::hash::Hash + 'static {}

impl<T> IdType for T where T: std::fmt::Debug + Clone + Eq + std::hash::Hash + 'static {}

/// Traid used for thread-safe.
pub trait IdTypeMT: IdType + Sync + Send {}

impl<T> IdTypeMT for T where T: IdType + Sync + Send {}