Skip to main content

Crate reliakit_primitives

Crate reliakit_primitives 

Source
Expand description

Type-safe primitives for constrained values.

reliakit-primitives provides small owned wrapper types for values that should satisfy common constraints before they move through an application or library boundary.

The crate has no dependencies and forbids unsafe code.

Re-exports§

pub use bounded::BoundedStr;
pub use error::PrimitiveError;
pub use error::PrimitiveResult;
pub use non_empty::NonEmptyStr;
pub use numeric::ByteSize;
pub use numeric::Percent;
pub use numeric::Port;

Modules§

bounded
error
non_empty
numeric