Skip to main content

ezsp/
extensions.rs

1//! Extension traits for various types.
2//!
3//!
4use std::fmt::Display;
5
6pub use self::configuration_ext::ConfigurationExt;
7pub use self::policy_ext::PolicyExt;
8mod configuration_ext;
9mod policy_ext;
10
11/// Extension trait for converting a type into a displayable form.
12pub trait Displayable {
13    /// The displayable form of the type.
14    type Displayable: Display;
15
16    /// Converts the type into its displayable form.
17    fn displayable(self) -> Self::Displayable;
18}