fiscal-core 0.7.2

Core types, tax calculations, and XML builder for Brazilian fiscal documents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Sealed trait infrastructure.
//!
//! Traits in this module use the sealed pattern to prevent external
//! implementations while keeping the trait itself public.

/// Private module that prevents external implementations of sealed traits.
pub(crate) mod private {
    /// Marker trait that seals a public trait.
    ///
    /// This trait is `pub(crate)` so only types within this crate can
    /// implement it, which transitively prevents external implementations
    /// of any trait that has `Sealed` as a supertrait.
    pub trait Sealed {}
}