pub trait IcalComponentSpec {
const KIND: IcalComponentKind;
// Provided methods
fn allowed_children() -> &'static [IcalComponentKind] { ... }
fn required_props() -> &'static [IcalPropKind] { ... }
}Expand description
The per-component contract: the child components it may nest and the properties it requires. Implemented on the zero-sized component markers; the defaults are the permissive empty sets, so a component overrides only where it constrains.
Required Associated Constants§
Sourceconst KIND: IcalComponentKind
const KIND: IcalComponentKind
The component this spec describes.
Provided Methods§
Sourcefn allowed_children() -> &'static [IcalComponentKind]
fn allowed_children() -> &'static [IcalComponentKind]
The child components this one may directly nest.
Sourcefn required_props() -> &'static [IcalPropKind]
fn required_props() -> &'static [IcalPropKind]
The properties this component requires.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".