ical-rs 0.1.0

iCalendar parser, validator, editor and builder library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! # Component lens contract
//!
//! [`IcalComponentLens`] identifies a component by type, the type-level key for
//! [`IcalCst::component`](crate::tree::cst::IcalCst::component). The wire name
//! comes from its [`IcalComponentSpec::KIND`] supertrait, so the two stay in
//! sync.

use crate::tree::component::IcalComponentSpec;

/// A component identified by type. The wire name and nesting rules come from
/// its [`IcalComponentSpec`] supertrait.
pub trait IcalComponentLens: IcalComponentSpec {}