#[sealed]

This crate provide a convinient and simple way to implement the sealed trait pattern, as described in the Rust API Guidelines [1].

toml [dependencies] sealed = "0.1"

Example

```rust use sealed::sealed;

[sealed]

trait T {}

[sealed]

pub struct A;

impl T for A {}

[sealed]

pub struct B{ field_1: i32 }

impl T for B {}

fn main() { return } ```